summaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-26 16:51:19 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-26 16:51:19 +0300
commitea6607e70132cf00c51180f5b50b45b525b3aefd (patch)
tree72dbf561fa2f1bddfe22d4b3874141fb1c53cda1 /internal/wizard.zsh
parent5567ab3850cf0a25021d1837267ad068737f8881 (diff)
better spelling when there is just one font file
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-xinternal/wizard.zsh12
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 41e0063d..d4b6e552 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -422,11 +422,19 @@ function ask_remove_font() {
done
print -P ""
if (( protected )); then
- flowing Please %Bdelete%b these files and run '%2Fp10k%f %Bconfigure%b.'
+ if (( $#fonts == 1 )); then
+ flowing Please %Bdelete%b this file and run '%2Fp10k%f %Bconfigure%b.'
+ else
+ flowing Please %Bdelete%b these files and run '%2Fp10k%f %Bconfigure%b.'
+ fi
print
exit 0
fi
- flowing -c "%BDelete these files?%b"
+ if (( $#fonts == 1 )); then
+ flowing -c "%BDelete this file?%b"
+ else
+ flowing -c "%BDelete these files?%b"
+ fi
print -P ""
print -P "%B(y) Yes (recommended).%b"
print -P ""