Fix bug and non-idiom in bash scripts.
Those small typos and non-idiom can lead to unexpected behavior, better fix them now. Change-Id: I218ba0f3bba832d0929fb52c21f7e66774da494e Closes-Bug: #1561539
This commit is contained in:
parent
cf864be1bc
commit
53eb3a966d
@ -2,11 +2,11 @@
|
||||
|
||||
set -ex
|
||||
|
||||
if [ ! -z ${GEM_HOME} ]; then
|
||||
if [ -n "${GEM_HOME}" ]; then
|
||||
GEM_BIN_DIR=${GEM_HOME}/bin/
|
||||
fi
|
||||
|
||||
if [ $PUPPET_VERSION == 4 ]; then
|
||||
if [ "${PUPPET_VERSION}" = 4 ]; then
|
||||
export PUPPET_BASE_PATH=/etc/puppetlabs/code
|
||||
else
|
||||
export PUPPET_BASE_PATH=/etc/puppet
|
||||
|
@ -6,11 +6,11 @@
|
||||
|
||||
set -ex
|
||||
|
||||
if [ ! -z ${GEM_HOME} ]; then
|
||||
if [ -n "${GEM_HOME}" ]; then
|
||||
GEM_BIN_DIR=${GEM_HOME}/bin/
|
||||
fi
|
||||
|
||||
if [ $PUPPET_VERSION == 4 ]; then
|
||||
if [ "${PUPPET_VERSION}" = 4 ]; then
|
||||
export PUPPET_BASE_PATH=/etc/puppetlabs/code
|
||||
else
|
||||
export PUPPET_BASE_PATH=/etc/puppet
|
||||
|
Loading…
Reference in New Issue
Block a user