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

This commit is contained in:
Jorge Bucaran 2019-01-22 18:23:56 +09:00
parent 91417201f4
commit 5ddafed654
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -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.