Skip to content

Commit

Permalink
Deal with white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
svanderburg committed Aug 31, 2016
1 parent 3daee83 commit 4605fdb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nix/node-env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,20 @@ let
packageDir=$(find . -type d -maxdepth 1 | tail -1)
# Restore write permissions to make building work
find "$packageDir" -type d | xargs chmod u+x
find "$packageDir" -type d -print0 | xargs -0 chmod u+x
chmod -R u+w "$packageDir"
# Move the extracted tarball into the output folder
mv "$packageDir" "$DIR/${packageName}"
elif [ -d "${src}" ]
then
# Restore write permissions to make building work
find "$packageDir" -type d | xargs chmod u+x
chmod -R u+w $strippedName
# Move the extracted directory into the output folder
mv $strippedName "$DIR/${packageName}"
fi
# Unset the stripped name to not confuse the next unpack step
unset strippedName
Expand Down

0 comments on commit 4605fdb

Please sign in to comment.