Better greping

This commit is contained in:
Sean Patrick Hagen 2022-06-17 12:40:13 -07:00
parent 20eb30bf4f
commit 69e58a2f68
No known key found for this signature in database
GPG Key ID: 618FC6E1C001EE4F

View File

@ -865,7 +865,7 @@ function __bobthefish_prompt_golang -S -d 'Display current Go information'
if test -f "$gomod_file"
set found_gomod 1
cat "$gomod_file" | grep "^go\ " | read _gomod gomod_version
grep "^go\ " "$gomod_file" | read __ gomod_version
break
end