This commit is contained in:
milisbir 2018-06-09 19:31:56 +02:00
parent f35072603c
commit ca55e213e6
1 changed files with 4 additions and 3 deletions

View File

@ -39,10 +39,11 @@ git_sunucu_eski="https://github.com"
if [ $? -eq 0 ];then if [ $? -eq 0 ];then
echo "eski git sunucusundan göç ediliyor." echo "eski git sunucusundan göç ediliyor."
if [ -f /usr/bin/sudo ];then local _gockom="mv /sources/milis.git /sources/milis.git.eski"
sudo mv /sources/milis.git /sources/milis.git.eski [ $(whoami) == "root" ] && echo "ttt"
$_gockom
else else
mv /sources/milis.git /sources/milis.git.eski sudo $_gockom
fi fi
fi fi