diff --git a/pkgs/build-support/setup-hooks/scatter_output.sh b/pkgs/build-support/setup-hooks/scatter_output.sh index 79118392094..f2a501c55e4 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 }