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