summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/patch-shebangs.sh
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-07-30 10:30:17 +0200
committerVladimír Čunát <vcunat@gmail.com>2015-07-30 10:30:17 +0200
commit862900e42e00dbc83215def6df1091f5129a8930 (patch)
tree794a76f9270eb50628f4f92e2410d854456570ca /pkgs/build-support/setup-hooks/patch-shebangs.sh
parentfd9e9201d698c2cb9d254df17ce79d7382fc5a83 (diff)
downloadnixlib-862900e42e00dbc83215def6df1091f5129a8930.tar
nixlib-862900e42e00dbc83215def6df1091f5129a8930.tar.gz
nixlib-862900e42e00dbc83215def6df1091f5129a8930.tar.bz2
nixlib-862900e42e00dbc83215def6df1091f5129a8930.tar.lz
nixlib-862900e42e00dbc83215def6df1091f5129a8930.tar.xz
nixlib-862900e42e00dbc83215def6df1091f5129a8930.tar.zst
nixlib-862900e42e00dbc83215def6df1091f5129a8930.zip
mass-replace deprecated usage of find -perm (Fixes #9044)
sed 's|-perm +0|-perm /0|g'
It's a mass-rebuild due to usage in stdenv's default setup hooks.
Diffstat (limited to 'pkgs/build-support/setup-hooks/patch-shebangs.sh')
-rw-r--r--pkgs/build-support/setup-hooks/patch-shebangs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/patch-shebangs.sh b/pkgs/build-support/setup-hooks/patch-shebangs.sh
index 5a7f23b2d816..44ebad0d593b 100644
--- a/pkgs/build-support/setup-hooks/patch-shebangs.sh
+++ b/pkgs/build-support/setup-hooks/patch-shebangs.sh
@@ -18,7 +18,7 @@ patchShebangs() {
     local oldInterpreterLine
     local newInterpreterLine
 
-    find "$dir" -type f -perm +0100 | while read f; do
+    find "$dir" -type f -perm /0100 | while read f; do
         if [ "$(head -1 "$f" | head -c +2)" != '#!' ]; then
             # missing shebang => not a script
             continue