add error message
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user