Skip to content

Commit

Permalink
帮助文档完善
Browse files Browse the repository at this point in the history
  • Loading branch information
dukun committed Nov 16, 2017
1 parent b3db52c commit c0a0e3c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/install-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#!/usr/bin/env bash

typeset SANDBOX_INSTALL_PREFIX
typeset DEFAULT_SANDBOX_INSTALL_PREFIX="${HOME}/.opt"

# exit shell with err_code
# $1 : err_code
Expand All @@ -17,17 +18,17 @@ exit_on_err()

# display usage
function usage() {
echo '
echo "
usage: ${0} [h] [l:]
-h : help
Prints the ${0} help
-p : install local path
Install local path in this compute. Default install local path is ${SANDBOX_INSTALL_PREFIX}
Install local path in this compute. Default install local PATH=${DEFAULT_SANDBOX_INSTALL_PREFIX}
'
"
}

# the sandbox main function
Expand All @@ -49,7 +50,7 @@ function main() {

# if not appoint the install local, default is ${HOME}/.opt
if [[ -z ${SANDBOX_INSTALL_PREFIX} ]]; then
SANDBOX_INSTALL_PREFIX="${HOME}/.opt"
SANDBOX_INSTALL_PREFIX=${DEFAULT_SANDBOX_INSTALL_PREFIX}
fi

# check permission
Expand Down

0 comments on commit c0a0e3c

Please sign in to comment.