aboutsummaryrefslogtreecommitdiff
path: root/aur.completor.bash
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-18 02:10:20 +0200
committerpml68 <contact@pml68.dev>2025-04-18 02:10:20 +0200
commitaa5a3c8120790df74f106b2c9145edae07800bb1 (patch)
tree00f65c9660309b5d7d75e0f822f94a4fcb042e6f /aur.completor.bash
parentfix: so `~` isn't expanded in `"` strings (diff)
downloadaur-aa5a3c8120790df74f106b2c9145edae07800bb1.tar.gz
feat: enable ShellCheck analysis
Diffstat (limited to 'aur.completor.bash')
-rw-r--r--aur.completor.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/aur.completor.bash b/aur.completor.bash
index c7513ed..48c6e8b 100644
--- a/aur.completor.bash
+++ b/aur.completor.bash
@@ -1,3 +1,4 @@
+# shellcheck disable=SC2034
output=aur-completion.bash
cmd=aur
cmd_args=@aur_pkgs
@@ -11,7 +12,7 @@ cmd_opts=(
)
reply_aur_pkgs() {
- pkgs=`basename -a ~/.aur/*/ | paste -d ' ' -s -`
+ pkgs=$(basename -a ~/.aur/*/ | paste -d ' ' -s -)
- COMPREPLY=( $(compgen -W "$pkgs" -- "$cur") )
+ COMPREPLY=( "$(compgen -W "$pkgs" -- "$cur")" )
}