Prevent wamser self update to modify zshrc
This commit is contained in:
parent
9f1db175c1
commit
0950a4ee84
|
@ -242,7 +242,14 @@ update-wasm() {
|
||||||
echo -e "\033[32;1m=== Updating wasmer ===\033[0m"
|
echo -e "\033[32;1m=== Updating wasmer ===\033[0m"
|
||||||
local start=`date +%s`
|
local start=`date +%s`
|
||||||
|
|
||||||
|
local old_path=$PWD
|
||||||
|
|
||||||
|
cd ~/.config/dotfiles
|
||||||
|
git stash > /dev/null 2>&1
|
||||||
wasmer self-update
|
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 seconds=$((`date +%s` - $start))
|
||||||
local formatted=`date -ud "@$seconds" +'%H hours %M minutes %S seconds'`
|
local formatted=`date -ud "@$seconds" +'%H hours %M minutes %S seconds'`
|
||||||
|
|
Loading…
Reference in New Issue