mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
Merge pull request #1516 from ttuegel/glob
Don't split paths with spaces
This commit is contained in:
commit
9c582619c6
@ -575,7 +575,7 @@ configurePhase() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$dontFixLibtool" ]; then
|
if [ -z "$dontFixLibtool" ]; then
|
||||||
for i in $(find . -name "ltmain.sh"); do
|
find . -iname "ltmain.sh" | while read i; do
|
||||||
echo "fixing libtool script $i"
|
echo "fixing libtool script $i"
|
||||||
fixLibtool $i
|
fixLibtool $i
|
||||||
done
|
done
|
||||||
@ -670,7 +670,7 @@ patchShebangs() {
|
|||||||
local oldInterpreterLine
|
local oldInterpreterLine
|
||||||
local newInterpreterLine
|
local newInterpreterLine
|
||||||
|
|
||||||
for f in $(find "$dir" -type f -perm +0100); do
|
find "$dir" -type f -perm +0100 | while read f; do
|
||||||
if [ "$(head -1 "$f" | head -c +2)" != '#!' ]; then
|
if [ "$(head -1 "$f" | head -c +2)" != '#!' ]; then
|
||||||
# missing shebang => not a script
|
# missing shebang => not a script
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user