diff --git a/webodm.sh b/webodm.sh index 3089b6ee..dbd8b9db 100755 --- a/webodm.sh +++ b/webodm.sh @@ -362,7 +362,11 @@ elif [[ $1 = "update" ]]; then if [[ $git_not_found ]]; then echo "Skipping source update (git not found)" else - run "git pull origin master" + if [[ -d .git ]]; then + run "git pull origin master" + else + echo "Skipping source update (.git directory not found)" + fi fi command="docker-compose -f docker-compose.yml"