Merge pull request #230 from Phuurl/master

Treats fc-cache return of 1 as success
- candidate fix for #218
This commit is contained in:
Ryan L McIntyre 2018-01-14 11:23:17 -05:00 committed by GitHub
commit 3a48b3ca0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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