- fix bugs introduced after Honolulu
- use exit code 1 rather than 0 when scripts are not called properly
Issue-ID: OOM-2643
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: If4bff02bcf8c26b924ce6d5281d6ad35f3defa40
# validate params
if [ -z "$1" ] || [ -z "$2" ]; then
usage
# validate params
if [ -z "$1" ] || [ -z "$2" ]; then
usage
fi
# determine if set-last-applied flag is enabled
SET_LAST_APPLIED="false"
fi
# determine if set-last-applied flag is enabled
SET_LAST_APPLIED="false"
- if expr"$FLAGS" : ".*--set-last-applied.*" ; then
+ if expr "$FLAGS" : ".*--set-last-applied.*" ; then
FLAGS="$(echo $FLAGS| sed -n 's/--set-last-applied//p')"
SET_LAST_APPLIED="true"
fi
FLAGS="$(echo $FLAGS| sed -n 's/--set-last-applied//p')"
SET_LAST_APPLIED="true"
fi
echo "Error: command 'undeploy' requires a release name"
echo "Error: command 'undeploy' requires a release name"
fi
case "${1:-"help"}" in
fi
case "${1:-"help"}" in