From b44a69c7725f856e2b6503ea6ac983ba3bf0938b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 8 Aug 2021 11:23:37 +0700 Subject: [PATCH] vcompletion: return failure on wrong arguments --- common/environment/setup/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/environment/setup/install.sh b/common/environment/setup/install.sh index f533212b7d..a6b68435eb 100644 --- a/common/environment/setup/install.sh +++ b/common/environment/setup/install.sh @@ -254,6 +254,9 @@ _vcompletion() { bash) vinstall "$file" 0644 $_bash_completion_dir "${cmd}" ;; fish) vinstall "$file" 0644 $_fish_completion_dir "${cmd}.fish" ;; zsh) vinstall "$file" 0644 $_zsh_completion_dir "_${cmd}" ;; - *) msg_red "$pkgver: vcompletion: unknown shell ${shell}" ;; + *) + msg_red "$pkgver: vcompletion: unknown shell ${shell}" + return 1 + ;; esac }