mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
strip: Dereference path if it is a symlink
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
bbedf54c52
commit
f84c2cda03
@@ -61,7 +61,7 @@ function _strip() {
|
||||
}
|
||||
|
||||
for path in ${paths[@]}; do
|
||||
for file in $(find "${path}" -xdev "${excludes[@]}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 2>/dev/null); do
|
||||
for file in $(find -H "${path}" -xdev "${excludes[@]}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 2>/dev/null); do
|
||||
_strip "${file}" || exit $?
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user