[22/28] stripper: Actually use the path we want

Message ID 20220204164748.315559-22-michael.tremer@ipfire.org
State Accepted
Commit 52e947f7f2c459baecfe9e8a713ac136bab3f985
Headers
Series [01/28] gcc: toolchain stage 2: Set sysroot to /tools_${arch} |

Commit Message

Michael Tremer Feb. 4, 2022, 4:47 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 src/stripper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/src/stripper b/src/stripper
index d1739b28c..8689b34de 100755
--- a/src/stripper
+++ b/src/stripper
@@ -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