Fixed the fall back logic... again

This commit is contained in:
bluesaxman 2020-01-24 10:55:54 -07:00
parent 8d6157e9a0
commit 824ca04b56

View File

@ -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;
}