Skip to content

Commit

Permalink
增加安装的默认路径为${HOME}/.opt
Browse files Browse the repository at this point in the history
  • Loading branch information
dukun committed Nov 16, 2017
1 parent e780ce2 commit b3db52c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bin/install-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ function main() {
esac
done


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

# check permission
# [[ ! -w ${SANDBOX_INSTALL_PREFIX} ]] \
# && exit_on_err 1 "permission denied, ${SANDBOX_INSTALL_PREFIX} is not writable."
if [[ -z ${SANDBOX_INSTALL_PREFIX} ]]; then
usage
exit_on_err 1
fi


local SANDBOX_INSTALL_LOCAL=${SANDBOX_INSTALL_PREFIX}/sandbox
Expand Down

0 comments on commit b3db52c

Please sign in to comment.