Ver código fonte

GitHub as update source for linux agent (fix).

DieFeM 9 anos atrás
pai
commit
756ff4cd41
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      ogp_agent_run

+ 2 - 2
ogp_agent_run

@@ -121,10 +121,10 @@ checkDepends() {
 update() {
 	# Run the update
 	if test -n "$AUTO_UPDATE"; then
-		if [ -z "$CURL" -o -z "$UNZIP" ]; then
+		if [ -z "$CURL" -o -z "$UNZIP" -o -z "$GIT" ]; then
 			checkDepends
 		fi
-		if [ -f "$CURL" -a -x "$CURL" ] && [ -f "$UNZIP" -a -x "$UNZIP" ]; then
+		if [ -f "$CURL" -a -x "$CURL" ] && [ -f "$UNZIP" -a -x "$UNZIP" ] && [ -f "$GIT" -a -x "$GIT" ]; then
 			cd $AGENTDIR
 			if [ ! -d tmp ]; then
 				mkdir tmp