summaryrefslogtreecommitdiffstats
path: root/scripts/completion
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2018-06-19 22:33:57 +0200
committerAllan McRae <allan@archlinux.org>2018-08-10 04:37:20 +0200
commite4be26b7327d8378735205ebedfc9718fb6fbba1 (patch)
treeee7df1988058c3e7066f278c6486cdcc6b044623 /scripts/completion
parent4e83abaae51c82ce6571450fb3ed9e2e71175b68 (diff)
downloadpacman-e4be26b7327d8378735205ebedfc9718fb6fbba1.tar.gz
pacman-e4be26b7327d8378735205ebedfc9718fb6fbba1.tar.xz
scripts: Remove trailing semicolons
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/completion')
-rw-r--r--scripts/completion/bash_completion.in2
-rw-r--r--scripts/completion/zsh_completion.in8
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/completion/bash_completion.in b/scripts/completion/bash_completion.in
index d750e12f..d99fba53 100644
--- a/scripts/completion/bash_completion.in
+++ b/scripts/completion/bash_completion.in
@@ -131,7 +131,7 @@ _pacman() {
D|R)
_pacman_pkg Qq;;
F)
- _arch_incomp 'l list' && _pacman_pkg Slq;
+ _arch_incomp 'l list' && _pacman_pkg Slq
;;
Q)
{ _arch_incomp 'g groups' && _pacman_pkg Qg sort; } ||
diff --git a/scripts/completion/zsh_completion.in b/scripts/completion/zsh_completion.in
index 77449955..c114ae02 100644
--- a/scripts/completion/zsh_completion.in
+++ b/scripts/completion/zsh_completion.in
@@ -370,7 +370,7 @@ _pacman_get_command() {
# main dispatcher
_pacman_zsh_comp() {
- local -a args cmds;
+ local -a args cmds
local tmp
args=( ${${${(M)words:#-*}#-}:#-*} )
for tmp in $words; do
@@ -465,7 +465,7 @@ _pacman_zsh_comp() {
if (( ${(w)#cmds} == 1 )); then
_pacman_action_help
else
- return 0;
+ return 0
fi
;;
*--sync*)
@@ -554,7 +554,7 @@ _pacman_key() {
"$_key_longopts[@]"
;;
*)
- i=$#;
+ i=$#
while [[ $words[$i] != -* ]] && [[ $words[$i] != "pacman-key" ]];do
i=$(($i-1))
done
@@ -681,7 +681,7 @@ _makepkg(){
*)
i=$#
while [[ $words[i] != -* ]] && [[ $words[$i] != "makepkg" ]];do
- i=$((i-1));
+ i=$((i-1))
done
case $words[$i] in
-*)