[X2Go-Commits] [buildscripts] 02/03: bin/slave-start-prepare.sh: use parameters -J and -O to save the contents to a file.

git-admin at x2go.org git-admin at x2go.org
Fri Sep 8 02:31:54 CEST 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 39bf3cbeaff182c9140b694da1516bc1a86c6675
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Fri Sep 8 02:30:27 2017 +0200

    bin/slave-start-prepare.sh: use parameters -J and -O to save the contents to a file.
    
    With -J, the file name is obtained via a server header if possible.
---
 bin/slave-start-prepare.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/slave-start-prepare.sh b/bin/slave-start-prepare.sh
index ab16b57..50cf254 100755
--- a/bin/slave-start-prepare.sh
+++ b/bin/slave-start-prepare.sh
@@ -40,6 +40,6 @@ rm -f -- "slave.jar"
 # This is okay, since curl still checks for the pubkey hash and aborts the
 # connection if the server's pubkey hash doesn't match the pinned one, even
 # when calling it with the --insecure parameter.
-curl -R --pinnedpubkey "${ssl_hash}" "https://${host}/jnlpJars/slave.jar"
+curl -R --pinnedpubkey "${ssl_hash}" -JO "https://${host}/jnlpJars/slave.jar"
 
 java -jar "slave.jar"

--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list