diff --git a/content.sh b/content.sh index 7f5cb29..9a5db2c 100755 --- a/content.sh +++ b/content.sh @@ -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 diff --git a/subscribe.sh b/subscribe.sh index 05d7634..044e006 100755 --- a/subscribe.sh +++ b/subscribe.sh @@ -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