Added relitive path detection
This commit is contained in:
parent
d055bc7938
commit
afe52b9943
@ -3,8 +3,12 @@ use strict;
|
||||
use warnings;
|
||||
use Math::Trig;
|
||||
|
||||
my @path = split("/", $0);
|
||||
pop @path;
|
||||
my $p = join("/", @path);
|
||||
|
||||
sub checksources {
|
||||
my $weather = `./wttrin.sh` or `./weatherbug.sh` or `./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