refactor: don't read entire fisher.fish to get version

pull/531/head
Jorge Bucaran 5 years ago
parent 91417201f4
commit 5ddafed654
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -147,7 +147,7 @@ function _fisher_self_update -a file
echo "fetching $url" >&2
command curl -s "$url?nocache" >$file.
set -l next_version (command awk 'NR == 1 { print $4 }' < $file.)
set -l next_version (command awk '{ print $4 } { exit }' < $file.)
switch "$next_version"
case "" $fisher_version
command rm -f $file.

Loading…
Cancel
Save