Skip to content

Commit

Permalink
Merge pull request enyojs#56 from onecrayon/master
Browse files Browse the repository at this point in the history
Adds quotes around paths in minify.sh to prevent breakage when spaces are in path
  • Loading branch information
unwiredben committed Apr 18, 2012
2 parents ebf6df5 + 432db7d commit 116846b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/minify.sh
@@ -1,16 +1,16 @@
#!/bin/bash

# the folder this script is in (*/enyo/tools)
TOOLS=$(cd `dirname $0`; pwd)
TOOLS="$(cd `dirname $0`; pwd)"
# enyo location
ENYO=$TOOLS/..
ENYO="$TOOLS/.."
# minify script location
MINIFY=$TOOLS/minifier/minify.js
MINIFY="$TOOLS/minifier/minify.js"

# check for node, but quietly
if command -v node >/dev/null 2>&1; then
# use node to invoke minify with a known path to enyo and imported parameters
node $MINIFY -enyo $ENYO $@
node "$MINIFY" -enyo "$ENYO" $@
else
echo "No node found in path"
exit 1
Expand Down

0 comments on commit 116846b

Please sign in to comment.