]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
stripper: Actually use the path we want
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Feb 2022 16:47:42 +0000 (16:47 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 5 Feb 2022 12:13:11 +0000 (12:13 +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