From 824ca04b56c6f82f670168215896d974edeb93aa Mon Sep 17 00:00:00 2001 From: bluesaxman Date: Fri, 24 Jan 2020 10:55:54 -0700 Subject: [PATCH] Fixed the fall back logic... again --- weather.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather.sh b/weather.sh index 9773e5f..d521698 100755 --- a/weather.sh +++ b/weather.sh @@ -8,7 +8,7 @@ pop @path; my $p = join("/", @path); sub checksources { - my $weather = `$p/wttrin.sh` || `$p/weatherbug.sh` || `$p/weathergov.sh` || print "Not Available\n\n#FF0000" and exit 33; + my $weather = (`$p/wttrin.sh` || `$p/weatherbug.sh` || `$p/weathergov.sh`) or print "Not Available\n\n#FF0000" and exit 33; return $weather; }