From ca55e213e60e4da87609978eb30bebee3235d35e Mon Sep 17 00:00:00 2001 From: milisbir Date: Sat, 9 Jun 2018 19:31:56 +0200 Subject: [PATCH] mps-goc --- bin/mps | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/mps b/bin/mps index fc4038840..43a4c5a33 100755 --- a/bin/mps +++ b/bin/mps @@ -39,10 +39,11 @@ git_sunucu_eski="https://github.com" if [ $? -eq 0 ];then echo "eski git sunucusundan göç ediliyor." - if [ -f /usr/bin/sudo ];then - sudo mv /sources/milis.git /sources/milis.git.eski + local _gockom="mv /sources/milis.git /sources/milis.git.eski" + [ $(whoami) == "root" ] && echo "ttt" + $_gockom else - mv /sources/milis.git /sources/milis.git.eski + sudo $_gockom fi fi