From c256d218fd1b7badc1ff9ebf9fdae16d71dc5eaf Mon Sep 17 00:00:00 2001 From: mikec Date: Wed, 16 Apr 2008 19:14:39 +0000 Subject: [PATCH] Added check to see if they have wget installed git-svn-id: svn://192.168.202.10@837 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/ADMIN_area_code_populate.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/ADMIN_area_code_populate.pl b/bin/ADMIN_area_code_populate.pl index 7cd49567..3a260834 100644 --- a/bin/ADMIN_area_code_populate.pl +++ b/bin/ADMIN_area_code_populate.pl @@ -73,6 +73,13 @@ $slash_star = '\*'; #### download the latest phone code table #### 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"; `wget $URL1`;