Commit 75da1ad0 authored by Janek Bevendorff's avatar Janek Bevendorff

Allow skipping of update prompt

parent a81780af
......@@ -11,7 +11,7 @@ done
rootpath="$(cd "$(dirname "$RP")" && pwd -P)"
. ${rootpath}/libs/bashhelper.sh
(cd "$webiscmdrootpath"
if [ "$1 $2" != "core update" ] && git_repo_has_updates; then
if [ -z "$WEBIS_CMD_NO_UPDATE" ] && [ "$1 $2" != "core update" ] && git_repo_has_updates; then
logWarn "Your webis-cmd is outdated. You need to update your installation before you can use it."
if ! yes_no_prompt "Do you want to update now?" "y"; then
logError "Canceling update. Please re-run the command or update manually with '${0} core update'."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment