Parcourir la source

Less Mess in OGP Dir Part 2

own3mall il y a 9 ans
Parent
commit
55a2b4096a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      ogp_agent_run

+ 1 - 1
ogp_agent_run

@@ -208,7 +208,7 @@ update() {
 				echo "The agent is up to date."
 			else
 				URL=https://github.com/OpenGamePanel/${REPONAME}/archive/${REVISION}.zip
-				HEAD=$(curl -L -Os --head -w "%{http_code}" "$URL")
+				HEAD=$(curl -L -s --head -w "%{http_code}" "$URL" -o "ogp_agent_latest.zip")
 				if [ "$HEAD" == "200" ]; then
 					echo "Updating agent using curl."
 					curl -L -s "$URL" -o "ogp_agent_latest.zip"