]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
stripper: Actually use the path we want
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 29 Jan 2022 10:27:29 +0000 (10:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Feb 2022 13:33:53 +0000 (13:33 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/stripper

index d1739b28cbe2881c5ad684bb3826f3db7556bf64..8689b34dee6733d3ab149731c89a4a66c996fc53 100755 (executable)
@@ -61,7 +61,7 @@ function _strip() {
 }
 
 for path in ${paths[@]}; do
-       for file in $(find / -xdev "${excludes[@]}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 2>/dev/null); do
+       for file in $(find "${path}" -xdev "${excludes[@]}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 2>/dev/null); do
                _strip "${file}" || exit $?
        done
 done