add error message
This commit is contained in:
parent
44db3a28dc
commit
a2e63c39c6
|
@ -32,6 +32,7 @@ fi
|
||||||
gamePk=$(mlblivepk.sh -t $team)
|
gamePk=$(mlblivepk.sh -t $team)
|
||||||
if [[ -z $gamePk || "$gamePk" = 'null' ]]
|
if [[ -z $gamePk || "$gamePk" = 'null' ]]
|
||||||
then
|
then
|
||||||
|
echo "$0:" 'no live games found' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ fi
|
||||||
gamePk=$(mlblivepk.sh -t $team)
|
gamePk=$(mlblivepk.sh -t $team)
|
||||||
if [[ -z $gamePk || "$gamePk" = 'null' ]]
|
if [[ -z $gamePk || "$gamePk" = 'null' ]]
|
||||||
then
|
then
|
||||||
|
echo "$0:" 'no live games found' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue