Use the actual value of the 'outfile' variable instead of its name when testing for empty string. Fixes: 6d859db5d033 ("*new* smatch_scripts/whitespase_only.sh") Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx> --- smatch_scripts/kchecker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_scripts/kchecker b/smatch_scripts/kchecker index 229250b4da8b..6aa26fb089ce 100755 --- a/smatch_scripts/kchecker +++ b/smatch_scripts/kchecker @@ -24,7 +24,7 @@ while true ; do shift elif echo "$1" | grep -q -- "--outfile=" ; then outfile=$(echo "$1" | cut -d '=' -f 2) - if [ "outfile" != "" ] ; then + if [ "$outfile" != "" ] ; then POST="$POST > $outfile" fi shift -- 2.45.2