ソースを参照

GitHub as update source for linux agent (fix).

DieFeM 9 年 前
コミット
756ff4cd41
1 ファイル変更2 行追加2 行削除
  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