[bin] fixes an error in golangci-lintw

This commit is contained in:
Bruno Carlin 2022-02-22 10:22:12 +01:00
parent 32472aaf4a
commit 148726f8c6

View file

@ -9,7 +9,8 @@ set capture false
golangci-lint $argv[1..-2] | while read --local --line line
if string match --quiet --regex '^.+:[0-9]+:' $line
if test $file = (string match --regex '[^:]+' $line)
set -l lineFilename (string match --regex '[^:]+' $line)
if test $file = $lineFilename -o $file = (pwd)/$lineFilename
set capture true
else
set capture false