summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlsinitcpio6
1 files changed, 3 insertions, 3 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 0fc8c67..02a87ca 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -105,8 +105,8 @@ if (( analyze )); then
kernver=${BASH_REMATCH[1]}
elif [[ $line = ./hooks/* ]]; then
foundhooks+=("${line##*/}")
- elif [[ $line = *@(/bin/|/sbin/)* ]]; then
- binaries+=("${line#.}")
+ elif [[ $line = *@(/?(s)bin/)* ]]; then
+ binaries+=("${line##*/}")
fi
done < <(decomp "$image" | bsdtar tf -)
@@ -144,7 +144,7 @@ if (( analyze )); then
fi
msg 'Included binaries:'
- printf ' %s\n' "${binaries[@]##*/}" | sort | column -c$columns
+ printf ' %s\n' "${binaries[@]}" | sort | column -c$columns
printf '\n'
if (( ${#hooks[*]} )); then