diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-30 13:21:53 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-30 13:21:53 -0400 |
commit | 232633c662a5477cacb5c3c6c7d2613d146f3fba (patch) | |
tree | cdea2cee9b977b3033a55ab0e4b72baa25402044 /pts-core/functions/pts-functions_shell.php | |
parent | 756a75ba235d81cadd534007973e5e2b1faf0c4b (diff) | |
download | phoronix-test-suite-upstream-232633c662a5477cacb5c3c6c7d2613d146f3fba.tar.gz phoronix-test-suite-upstream-232633c662a5477cacb5c3c6c7d2613d146f3fba.tar.xz phoronix-test-suite-upstream-232633c662a5477cacb5c3c6c7d2613d146f3fba.zip |
pts-core: Add -L argument to curl to follow download links
Diffstat (limited to 'pts-core/functions/pts-functions_shell.php')
-rw-r--r-- | pts-core/functions/pts-functions_shell.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_shell.php b/pts-core/functions/pts-functions_shell.php index 9d0cad8..f2ccfd7 100644 --- a/pts-core/functions/pts-functions_shell.php +++ b/pts-core/functions/pts-functions_shell.php @@ -36,7 +36,7 @@ function pts_download($download, $to) if(is_executable("/usr/bin/curl")) { // curl download - $download_output = shell_exec("cd " . $to_dir . " && curl --fail --user-agent \"" . $user_agent . "\" " . $download . " > " . $to_file); + $download_output = shell_exec("cd " . $to_dir . " && curl -L --fail --user-agent \"" . $user_agent . "\" " . $download . " > " . $to_file); } else { |