Просмотр исходного кода

GitHub as update source for linux agent (fix).

DieFeM 9 лет назад
Родитель
Сommit
756ff4cd41
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      ogp_agent_run

+ 2 - 2
ogp_agent_run

@@ -121,10 +121,10 @@ checkDepends() {
 update() {
 update() {
 	# Run the update
 	# Run the update
 	if test -n "$AUTO_UPDATE"; then
 	if test -n "$AUTO_UPDATE"; then
-		if [ -z "$CURL" -o -z "$UNZIP" ]; then
+		if [ -z "$CURL" -o -z "$UNZIP" -o -z "$GIT" ]; then
 			checkDepends
 			checkDepends
 		fi
 		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
 			cd $AGENTDIR
 			if [ ! -d tmp ]; then
 			if [ ! -d tmp ]; then
 				mkdir tmp
 				mkdir tmp