Skip to content

Commit

Permalink
Fixed home path determination with nounset
Browse files Browse the repository at this point in the history
  • Loading branch information
xdissent committed Sep 29, 2011
1 parent 7a9dfb8 commit 6566760
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ievms.sh
Expand Up @@ -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}"
Expand Down

0 comments on commit 6566760

Please sign in to comment.