deploy_doc.sh: Fix condition when checking for any changes

This commit is contained in:
Sebastian Gniazdowski 2017-10-05 16:17:26 +02:00
parent 21594be1da
commit 2baad5a88b

View file

@ -42,7 +42,7 @@ LIST_NEW=( out/* )
cd out
# No changes?
if git diff --quiet --exit-code || [[ "${#LIST_ORIGINAL}" -eq "${#LIST_NEW}" ]]; then
if git diff --quiet --exit-code && [[ "${#LIST_ORIGINAL}" -eq "${#LIST_NEW}" ]]; then
echo -- "<- ${LIST_ORIGINAL[@]}"
echo -- "-> ${LIST_NEW[@]}"
echo "NO CHANGES, exiting"