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.
pull/1043/head
Nils Winkler 2017-09-15 08:10:17 +02:00
parent f57bd1e131
commit fb6fcaeb06
1 changed files with 7 additions and 3 deletions

View File

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