redirect to new server
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user