Browse files

Fixed home path determination with `nounset`

  • Loading branch information...
1 parent 7a9dfb8 commit 6566760b5a0904f9e959333ae09f4770f62be42e @xdissent xdissent committed Sep 29, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −6 ievms.sh
View
8 ievms.sh
@@ -11,12 +11,8 @@ log() { printf "$*\n" ; return $? ; }
fail() { log "\nERROR: $*\n" ; exit 1 ; }
create_home() {
- if [[ -z "${INSTALL_PATH}" ]]
- then
- ievms_home="${HOME}/.ievms"
- else
- ievms_home="${INSTALL_PATH}"
- fi
+ def_ievms_home="${HOME}/.ievms"
+ ievms_home=${INSTALL_PATH:-$def_ievms_home}
mkdir -p "${ievms_home}"
cd "${ievms_home}"

0 comments on commit 6566760

Please sign in to comment.