Added check to see if they have wget installed

git-svn-id: svn://192.168.202.10@837 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mikec
2008-04-16 19:14:39 +00:00
parent 32af9c8ff4
commit c256d218fd
+7
View File
@@ -73,6 +73,13 @@ $slash_star = '\*';
#### download the latest phone code table #### #### download the latest phone code table ####
chdir("$PATHhome"); chdir("$PATHhome");
$wget = `which wget`;
print "$wget\n";
if ( $wget eq "" ) {
print STDERR "Please install the wget command\n";
exit();
}
print STDERR "Downloading latest phone codes tables\n"; print STDERR "Downloading latest phone codes tables\n";
`wget $URL1`; `wget $URL1`;