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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user