Skip to content

Commit

Permalink
fix(lilo,rpcdebug,slapt-{get,src}): work around nounset
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Sep 25, 2023
1 parent 14cd53b commit cfc3eda
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion completions/lilo
Expand Up @@ -25,7 +25,7 @@ _comp_cmd_lilo()
local i conf=""
for i in "${!words[@]}"; do
if [[ ${words[i]} == -C ]]; then
conf=${words[i + 1]}
conf=${words[i + 1]-}
break
fi
done
Expand Down
2 changes: 1 addition & 1 deletion completions/rpcdebug
Expand Up @@ -6,7 +6,7 @@ _comp_cmd_rpcdebug__flags()

for ((i = 1; i < ${#words[@]}; i++)); do
if [[ ${words[i]} == -m ]]; then
module=${words[i + 1]}
module=${words[i + 1]-}
break
fi
done
Expand Down
2 changes: 1 addition & 1 deletion completions/slapt-get
Expand Up @@ -48,7 +48,7 @@ _comp_cmd_slapt_get()
for ((i = ${#words[@]} - 1; i > 0; i--)); do
if [[ ${words[i]} == -@(c|-config) ]]; then
local ret
_comp_expand_tilde "${words[i + 1]}"
_comp_expand_tilde "${words[i + 1]-}"
config=$ret
break
fi
Expand Down
2 changes: 1 addition & 1 deletion completions/slapt-src
Expand Up @@ -43,7 +43,7 @@ _comp_cmd_slapt_src()
for ((i = ${#words[@]} - 1; i > 0; i--)); do
if [[ ${words[i]} == -@(c|-config) ]]; then
local ret
_comp_expand_tilde "${words[i + 1]}"
_comp_expand_tilde "${words[i + 1]-}"
config=$ret
break
fi
Expand Down

0 comments on commit cfc3eda

Please sign in to comment.