Merge pull request #516 from stefanmaric/master

Override fishfile content instead of replacing the file
This commit is contained in:
Jorge Bucaran 2019-01-18 23:51:18 +09:00 committed by GitHub
commit 9fc0779339
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,8 +240,7 @@ function _fisher_commit -a cmd
end end
end end
_fisher_fmt <$fishfile | _fisher_write $cmd $actual_pkgs >$fishfile. printf "%s\n" (_fisher_fmt <$fishfile | _fisher_write $cmd $actual_pkgs) >$fishfile
command mv -f $fishfile. $fishfile
_fisher_self_complete _fisher_self_complete