mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-12-25 20:18:01 +02:00
Treats fc-cache return code of 1 as success prevent install.sh returning 1
This commit is contained in:
parent
09c2af1d71
commit
d71100d58e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user