own3mall 9 лет назад
Родитель
Сommit
55a2b4096a
1 измененных файлов с 1 добавлено и 1 удалено
  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"