Permalink
Browse files

Fix installer for some Linux system

  • Loading branch information...
1 parent 7b39a4d commit 8dea8cc53eb1f96db02ff3b1a13a998fa2de388e @ryanwilliams committed Dec 17, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 install.sh
View
7 install.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+# vim:ff=unix
+
if which npm > /dev/null
then
echo "NPM is installed. You should probably install Cocos2D JavaScript as an npm package using this command instead:\n\n npm install -g .\n"
@@ -27,7 +29,9 @@ mkdir -p "$install_to"
cd $DIR
-IFS=$'\n'
+# Set Internal Field Separator to new lines only
+IFS=$'
+'
for file in `find * \( ! -regex '.*/\..*' \) -type f`
do
dst="$install_to/$file"
@@ -39,6 +43,7 @@ do
cp "$file" "$dst"
done
+unset IFS
cd -

0 comments on commit 8dea8cc

Please sign in to comment.