From 4605fdb7c8a1af3d061051ac3fd6b140ba3ae0fe Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Wed, 31 Aug 2016 22:05:40 +0000 Subject: [PATCH] Deal with white spaces --- nix/node-env.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nix/node-env.nix b/nix/node-env.nix index 9296bc2..29995f2 100644 --- a/nix/node-env.nix +++ b/nix/node-env.nix @@ -124,7 +124,7 @@ 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 @@ -132,13 +132,12 @@ let 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