aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-11-19 14:15:46 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-11-19 14:15:46 +0100
commit712ea0ac188aa2a22df1c3aca4cf4f17adf6b69e (patch)
treeebfcab4e88edb9e0509cb34a07d8e7b866516924
parent446aa59e3c96cdbac09248024d462d50c9c303b2 (diff)
downloadsbotools2-712ea0ac188aa2a22df1c3aca4cf4f17adf6b69e.tar.xz
Use list-form of system() so we avoid the shell
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index 7eba745..4bf7394 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -510,7 +510,7 @@ sub get_distfile {
mkdir $distfiles unless -d $distfiles;
chdir $distfiles;
unlink $filename if -f $filename;
- if (system("wget --no-check-certificate \"$link\"") != 0) {
+ if (system('wget', '--no-check-certificate', $link) != 0) {
return "Unable to wget $link.\n", _ERR_DOWNLOAD;
}
# can't do anything if the link in the .info doesn't lead to a good d/l