Browse files

fixed params error

when i run script:
“sudo ./install-appledoc.sh -b /usr/bin -t ~/Library/Application\ Support/appledoc/ “

an error occurred.
“install-appledoc.sh: line 32: [: too many arguments”
  • Loading branch information...
1 parent ab45696 commit 1fc4bdce2bc6d1bfa63e017ee1bd9407921cbd9f squarezw committed Nov 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 install-appledoc.sh
View
2 install-appledoc.sh
@@ -29,7 +29,7 @@ do
t)
INSTALL_TEMPLATES="YES"
echo "arg is = $OPTARG"
- if [ $OPTARG != "default" ]; then
+ if [ "$OPTARG" != "default" ]; then
TEMPLATES_DIR=$OPTARG
fi
;;

0 comments on commit 1fc4bdc

Please sign in to comment.