check if $team is set
This commit is contained in:
@@ -23,6 +23,12 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z $team ]]
|
||||
then
|
||||
echo "$0:" '-t is required' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
gamePk=$(./livepk.sh -t $team)
|
||||
if [[ -z $gamePk || "$gamePk" = 'null' ]]
|
||||
then
|
||||
|
||||
@@ -23,6 +23,12 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z $team ]]
|
||||
then
|
||||
echo "$0:" '-t is required' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
gamePk=$(./livepk.sh -t $team)
|
||||
if [[ -z $gamePk || "$gamePk" = 'null' ]]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user