mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-24 22:51:49 +02:00
refactor: don't read entire fisher.fish to get version
This commit is contained in:
parent
91417201f4
commit
5ddafed654
|
@ -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…
Reference in a new issue