Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed parameter parsing error for command-line options with space #413

Merged
merged 1 commit into from

2 participants

@squarezw

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

an error occurred.
“install-appledoc.sh: line 32: [: too many arguments”

squarezw 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”
1fc4bdc
@tomaz tomaz merged commit 78df72f into from
@tomaz
Owner

Merged, thanks for pointing it out and fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 20, 2013
  1. fixed params error

    squarezw authored
    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”
This page is out of date. Refresh to see the latest.
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
;;
Something went wrong with that request. Please try again.