summaryrefslogtreecommitdiffstats
path: root/lsinitcpio
diff options
context:
space:
mode:
Diffstat (limited to 'lsinitcpio')
-rwxr-xr-xlsinitcpio3
1 files changed, 1 insertions, 2 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 9cb5209..4b9f77b 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -160,8 +160,7 @@ if (( analyze )); then
foundhooks=("$workdir"/hooks/*)
[[ -f ${foundhooks[0]} ]] && foundhooks=("${foundhooks[@]##*/}") || unset foundhooks
- binaries=("$workdir"/usr/bin/*)
- binaries=("${binaries[@]##*/}")
+ mapfile -t binaries < <(find "$workdir/usr/bin" -type f -printf %f\\n)
read -r version < "$workdir/VERSION"