From a2e63c39c61e6fbaab9e5e5feeb0a0d1b7e22462 Mon Sep 17 00:00:00 2001 From: filifa Date: Tue, 30 Jul 2024 21:36:11 -0500 Subject: [PATCH] add error message --- mlbcontent.sh | 1 + mlbsubscribe.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/mlbcontent.sh b/mlbcontent.sh index 368e264..f64ebe1 100755 --- a/mlbcontent.sh +++ b/mlbcontent.sh @@ -32,6 +32,7 @@ fi gamePk=$(mlblivepk.sh -t $team) if [[ -z $gamePk || "$gamePk" = 'null' ]] then + echo "$0:" 'no live games found' >&2 exit 1 fi diff --git a/mlbsubscribe.sh b/mlbsubscribe.sh index 9f805ab..9192a4f 100755 --- a/mlbsubscribe.sh +++ b/mlbsubscribe.sh @@ -32,6 +32,7 @@ fi gamePk=$(mlblivepk.sh -t $team) if [[ -z $gamePk || "$gamePk" = 'null' ]] then + echo "$0:" 'no live games found' >&2 exit 1 fi