Fix the negative error number

This fixes the shellcheck error. Running on my laptop, `exit -1` results in an actual return code of 255, so make that explicit.
This commit is contained in:
No GUI 2019-07-25 01:08:21 +00:00 committed by GitHub
parent 74ade3305e
commit 1b36e2aa8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ if [ ! -z "$*" ]; then
if [[ ! -d "$nerdfonts_root_dir/$font" ]]; then
echo -e "Font $font doesn't exist. Options are: \\n"
find "$nerdfonts_root_dir" -maxdepth 1 -type d \( \! -name "$(basename "$nerdfonts_root_dir")" \) -exec basename {} \;
exit -1
exit 255
fi
nerdfonts_dirs=( "${nerdfonts_dirs[@]}" "$nerdfonts_root_dir/$font" )
fi