Skip to content

Commit 4d2276b

Browse files
committed
fix bash-autocomplete
Signed-off-by: Zen <[email protected]>
1 parent 309eeba commit 4d2276b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

completion/ugrd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
_ugrd_autocomplete() {
24
local cur prev args
35
cur="${COMP_WORDS[COMP_CWORD]}"
@@ -10,19 +12,18 @@ _ugrd_autocomplete() {
1012

1113
case "${prev}" in
1214
--config|-c)
13-
COMPREPLY=( "$(compgen -f -- "${cur}")" )
15+
mapfile -t COMPREPLY < <(compgen -f -- "${cur}")
1416
return 0
1517
;;
1618
--kernel-version|--kver)
17-
COMPREPLY=( "$(compgen -W "$(ls /lib/modules)" -- "${cur}")" )
19+
mapfile -t COMPREPLY < <(compgen -W "$(ls /lib/modules)" -- "${cur}")
1820
return 0
1921
;;
2022
*)
21-
COMPREPLY=( "$(compgen -W "${args}" -- "${cur}")" )
23+
mapfile -t COMPREPLY < <(compgen -W "${args}" -- "${cur}")
2224
return 0
2325
;;
2426
esac
25-
2627
}
2728

2829
complete -F _ugrd_autocomplete ugrd

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ugrd"
7-
version = "1.3.2"
7+
version = "1.3.3"
88
authors = [
99
{ name="Desultory", email="[email protected]" },
1010
]

0 commit comments

Comments
 (0)