Explorar el Código

Merge pull request #544 from maximbaz/use-different-exit-codes-on-updates-check

Use different exit code on updates check
André Peters hace 8 años
padre
commit
e9be01767c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      update.sh

+ 2 - 1
update.sh

@@ -51,10 +51,11 @@ case "${1}" in
 		git fetch origin ${BRANCH}
 		if ! git diff origin/${BRANCH} --quiet; then
 			echo "Updated code is available."
+			exit 0
 		else
 			echo "No updates available."
+			exit 3
 		fi
-		exit 0
 	;;
 esac