Prevent wamser self update to modify zshrc

This commit is contained in:
Thomas Forgione 2019-06-18 11:45:15 +02:00
parent 9f1db175c1
commit 0950a4ee84
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 7 additions and 0 deletions

View File

@ -242,7 +242,14 @@ update-wasm() {
echo -e "\033[32;1m=== Updating wasmer ===\033[0m"
local start=`date +%s`
local old_path=$PWD
cd ~/.config/dotfiles
git stash > /dev/null 2>&1
wasmer self-update
git checkout zshrc > /dev/null 2>&1
git stash pop > /dev/null 2>&1
cd $old_path
local seconds=$((`date +%s` - $start))
local formatted=`date -ud "@$seconds" +'%H hours %M minutes %S seconds'`