redirect to new server

This commit is contained in:
2018-10-13 03:54:06 +04:00
parent 24b2b79a28
commit 924390287b

View File

@@ -254,6 +254,9 @@ function update_.g {
return return
fi fi
# force updating origin to new server
.g remote set-url origin https://gitea.abra.me/svxf/dotfiles.git
local RES="$(.g pull --no-stat 2>&1)" local RES="$(.g pull --no-stat 2>&1)"
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
@@ -261,13 +264,14 @@ function update_.g {
return return
fi fi
if [[ ! $RES =~ "Already up.to.date" ]]; then # no verbose :(
echo "Updated .g" # if [[ ! $RES =~ "Already up.to.date" ]]; then
echo $RES # echo "Updated .g"
echo "======" # echo $RES
echo # echo "======"
zshreload # echo
fi # zshreload
# fi
} }
function .sh_setup { function .sh_setup {