mirror of
https://forge.murkfall.net/bluesaxman/weatherget.git
synced 2026-03-13 02:54:22 -06:00
refixed fallback logic
This commit is contained in:
@@ -8,7 +8,7 @@ pop @path;
|
|||||||
my $p = join("/", @path);
|
my $p = join("/", @path);
|
||||||
|
|
||||||
sub checksources {
|
sub checksources {
|
||||||
my $weather = (`$p/wttrin.sh` or `$p/weatherbug.sh` or `$p/weathergov.sh`) or print "Not Available\n\n#FF0000" and exit 33;
|
my $weather = `$p/wttrin.sh` || `$p/weatherbug.sh` || `$p/weathergov.sh` || print "Not Available\n\n#FF0000" and exit 33;
|
||||||
return $weather;
|
return $weather;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user