Fixed test case where the bash_it.sh would fail with a non-zero return value

This was caused by the way the check for installed preview apps was handled.
This commit is contained in:
Nils Winkler
2017-09-15 08:10:17 +02:00
parent f57bd1e131
commit fb6fcaeb06

View File

@@ -91,9 +91,13 @@ fi
# Adding Support for other OSes
PREVIEW="less"
[ -s /usr/bin/gloobus-preview ] && PREVIEW="gloobus-preview"
# shellcheck disable=SC2034
[ -s /Applications/Preview.app ] && PREVIEW="/Applications/Preview.app"
if [ -s /usr/bin/gloobus-preview ]; then
PREVIEW="gloobus-preview"
elif [ -s /Applications/Preview.app ]; then
# shellcheck disable=SC2034
PREVIEW="/Applications/Preview.app"
fi
# Load all the Jekyll stuff