mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Remove backslash to remove grep warning
New in grep 3.8 apparently is this warning: `grep: warning: stray \ before white space`. Explanation: https://github.com/koalaman/shellcheck/issues/2573
This commit is contained in:
parent
4828218af5
commit
9ff7cd3f3c
@ -857,7 +857,7 @@ function __bobthefish_prompt_golang -S -a real_pwd -d 'Display current Go inform
|
|||||||
set -l d $real_pwd
|
set -l d $real_pwd
|
||||||
while not [ -z "$d" ]
|
while not [ -z "$d" ]
|
||||||
if [ -e $d/go.mod ]
|
if [ -e $d/go.mod ]
|
||||||
grep "^go\ " "$d/go.mod" | read __ gomod_version
|
grep "^go " "$d/go.mod" | read __ gomod_version
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user