summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2013-11-02 06:32:18 +0100
committerDaniil Baturin <daniil@baturin.org>2013-11-02 06:32:18 +0100
commit678819fce42e8b58727fc9b107e30867a4d19e02 (patch)
treea1fceb14c7b05398d042e458891d27e4ded5fa6f /scripts
parenta5cf391520d6128e4feab5e8326ce68055b9ee99 (diff)
downloadvyatta-cfg-system-678819fce42e8b58727fc9b107e30867a4d19e02.tar.gz
vyatta-cfg-system-678819fce42e8b58727fc9b107e30867a4d19e02.zip
Fix some shell quoting weirdness (curl dumped the ISO on stdout)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install/install-image3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image
index aa423f73..147706e7 100755
--- a/scripts/install/install-image
+++ b/scripts/install/install-image
@@ -64,10 +64,9 @@ fetch_iso_by_url ()
# This is for statistics collection
vyos_version=`dpkg-query --showformat='${Version}' --show vyatta-version`
- user_agent="-H \"User-Agent: VyOS/$vyos_version\""
filename="${TEMP_DIR}/${NEW_ISO##*/}"
- curl $user_agent $auth -f -o $filename $NEW_ISO
+ curl -H "User-Agent: VyOS/$vyos_version" $auth -f -o $filename $NEW_ISO
curlerror=$?
if [ $curlerror -eq 51 ]; then
host=${NEW_ISO##scp://}