Fixed fall back logic
This commit is contained in:
parent
376031ee0e
commit
a038199bb7
@ -8,7 +8,7 @@ pop @path;
|
||||
my $p = join("/", @path);
|
||||
|
||||
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` or `$p/weatherbug.sh` or `$p/weathergov.sh`) or print "Not Available\n\n#FF0000" and exit 33;
|
||||
return $weather;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user