diff --git a/bin/update b/bin/update index 4e72c21..58a92b9 100755 --- a/bin/update +++ b/bin/update @@ -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'`