check if $team is set

This commit is contained in:
filifa 2024-07-26 19:43:45 -05:00
parent 0342594993
commit 8305d9bb29
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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