Re: [PATCH 1/2] bash-completion:fix shellcheck error

2022-11-23 Thread Daniel Kiper
On Mon, Sep 19, 2022 at 09:20:13AM +0800, t.feng via Grub-devel wrote: > SC2070 (error): -n doesn't work with unquoted arguments. > Quote or use [[ ]]. > In grub-completion.bash.in line 130: > [ -n $tmp ] && { > ^--^ SC2070 (error) > > ref:https://github.com/koalaman/

[PATCH 1/2] bash-completion:fix shellcheck error

2022-09-18 Thread t.feng via Grub-devel
SC2070 (error): -n doesn't work with unquoted arguments. Quote or use [[ ]]. In grub-completion.bash.in line 130: [ -n $tmp ] && { ^--^ SC2070 (error) ref:https://github.com/koalaman/shellcheck/wiki/SC2070 --- util/bash-completion.d/grub-completion.bash.in | 2 +-