Treats fc-cache return code of 1 as success prevent install.sh returning 1

This commit is contained in:
Phuurl 2018-01-13 11:47:57 +00:00
parent 09c2af1d71
commit d71100d58e

View file

@ -290,4 +290,13 @@ esac
if [[ -n $(which fc-cache) ]]; then
[ "$quiet" = false ] && fc-cache -vf "$font_dir"
[ "$quiet" = true ] && fc-cache -f "$font_dir"
case $? in
[0-1])
# Catch fc-cache returning 1 on a success
exit 0
;;
*)
exit $?
;;
esac
fi