mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-12 09:41:47 +02:00
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:
parent
74ade3305e
commit
1b36e2aa8a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue