Fix unbound variable errors
This commit is contained in:
@@ -59,9 +59,9 @@ step_1() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ ! -z "$1" ] && ( [ "$1" == "full" ] || [ "$1" == "incremental" ] ) ; then
|
||||
if [ -n "${1:-}" ] && ( [ "$1" == "full" ] || [ "$1" == "incremental" ] ) ; then
|
||||
dupArgs+=("$1")
|
||||
elif [ ! -z "$1" ] ; then
|
||||
elif [ -n "${1:-}" ] ; then
|
||||
echo " [W] $toolName command \"$1\" not recognized"
|
||||
return 1
|
||||
fi
|
||||
@@ -155,7 +155,7 @@ step_7() {
|
||||
shift
|
||||
local ebuTarget="$EBU_TARGET"
|
||||
local dupCommand=
|
||||
if [ ! -z "$1" ] ; then
|
||||
if [ -n "${1:-}" ] ; then
|
||||
ebuTarget="$1"
|
||||
fi
|
||||
|
||||
@@ -182,7 +182,7 @@ step_20_info() {
|
||||
[ ! -z "${1:-}" ] && ebuTarget="$1"
|
||||
if contextHelp; then
|
||||
echo "Status of (profile) [TARGET]"
|
||||
elif [ ! -z "$1" ]; then
|
||||
elif [ -n "${1:-}" ]; then
|
||||
echo "Status of target: $ebuTarget"
|
||||
else
|
||||
echo "Status of profile \"$seq_profileName\" target: $ebuTarget"
|
||||
@@ -192,7 +192,7 @@ step_20_alias() { echo 'status'; }
|
||||
step_20() {
|
||||
shift
|
||||
local ebuTarget="$EBU_TARGET"
|
||||
if [ ! -z "$1" ] ; then
|
||||
if [ -n "${1:-}" ] ; then
|
||||
ebuTarget="$1"
|
||||
fi
|
||||
|
||||
@@ -205,7 +205,7 @@ step_22_alias() { echo 'list'; }
|
||||
step_22() {
|
||||
shift
|
||||
local ebuTarget="$EBU_TARGET"
|
||||
if [ ! -z "$1" ] ; then
|
||||
if [ -n "${1:-}" ] ; then
|
||||
ebuTarget="$1"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user