3
0
Fork 0
forked from mirrors/nixpkgs

Don't hardcode shell, use $SHELL instead

This commit is contained in:
Maxim Ivanov 2014-05-26 14:48:39 +01:00
parent 9e685556f2
commit e7d5e1cdbc

View file

@ -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
}