|
@@ -16,7 +16,7 @@ cd $BOOKSTACK_DIR || exit
|
|
|
|
|
|
# Check update
|
|
|
git fetch origin release -n --quiet
|
|
|
-[ -n "$(git diff --quiet @ @{u})" ] || { echo "Up-to-date" && exit; }
|
|
|
+git diff --quiet HEAD FETCH_HEAD && echo "Up-to-date" && exit
|
|
|
|
|
|
# Get database options from BookStack .env file
|
|
|
export $(cat "$BOOKSTACK_DIR/.env" | grep ^DB_ | xargs)
|