We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nofiles
1 parent cf758e0 commit 7573f16Copy full SHA for 7573f16
completions/upgradepkg
@@ -14,12 +14,12 @@ _upgradepkg()
14
if [[ $cur == ?*%* ]]; then
15
prev="${cur%%?(\\)%*}"
16
cur="${cur#*%}"
17
- local nofiles="" IFS=$'\n'
+ local nofiles=false IFS=$'\n'
18
compopt -o filenames
19
COMPREPLY=($(compgen -P "$prev%" -f -X "!*.@(t[bgxl]z)" -- "$cur"))
20
- [[ ${COMPREPLY-} ]] || nofiles=1
+ [[ ${COMPREPLY-} ]] || nofiles=true
21
COMPREPLY+=($(compgen -P "$prev%" -S '/' -d -- "$cur"))
22
- [[ $nofiles ]] && compopt -o nospace
+ "$nofiles" && compopt -o nospace
23
return
24
fi
25
0 commit comments