From e7d5e1cdbc4844e0d9b491ad86a8440314f6b73f Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Mon, 26 May 2014 14:48:39 +0100 Subject: [PATCH] Don't hardcode shell, use $SHELL instead --- pkgs/build-support/setup-hooks/scatter_output.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/setup-hooks/scatter_output.sh b/pkgs/build-support/setup-hooks/scatter_output.sh index 79118392094d..f2a501c55e4f 100644 --- a/pkgs/build-support/setup-hooks/scatter_output.sh +++ b/pkgs/build-support/setup-hooks/scatter_output.sh @@ -38,7 +38,7 @@ scatter_files() { rm -r $f rmdir --ignore-fail-on-non-empty $(dirname $f) done - find ${!o} -type f -exec /bin/sh -c 'patchelf --set-rpath $(patchelf --print-rpath {} 2>/dev/null):'${!o}'/lib {} 2>/dev/null && patchelf --shrink-rpath {}' \; + find ${!o} -type f -exec $SHELL -c 'patchelf --set-rpath $(patchelf --print-rpath {} 2>/dev/null):'${!o}'/lib {} 2>/dev/null && patchelf --shrink-rpath {}' \; done eval $save_nullglob }