diff options
| author | pml68 <contact@pml68.dev> | 2025-04-18 02:10:20 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-04-18 02:10:20 +0200 |
| commit | aa5a3c8120790df74f106b2c9145edae07800bb1 (patch) | |
| tree | 00f65c9660309b5d7d75e0f822f94a4fcb042e6f /aur.completor.bash | |
| parent | fix: so `~` isn't expanded in `"` strings (diff) | |
| download | aur-aa5a3c8120790df74f106b2c9145edae07800bb1.tar.gz | |
feat: enable ShellCheck analysis
Diffstat (limited to 'aur.completor.bash')
| -rw-r--r-- | aur.completor.bash | 5 |
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")" ) } |
