From 8cdeb5237b0f86226fe34e8245f78f09a59668f9 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 7 Jan 2016 21:35:37 +0800 Subject: remove sudo for install script --- install | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install b/install index d2a0ee3c3..5165633a8 100755 --- a/install +++ b/install @@ -64,10 +64,10 @@ cd .. # create the xmake install directory xmake_dir_install=$prefix/share/xmake if [ -d $xmake_dir_install ]; then - sudo rm -rf $xmake_dir_install + rm -rf $xmake_dir_install fi if [ ! -d $xmake_dir_install ]; then - sudo mkdir -p $xmake_dir_install + mkdir -p $xmake_dir_install fi if [ $? -ne 0 ]; then echo "create $xmake_dir_install failed!" @@ -77,15 +77,15 @@ fi # install the xmake core file xmake_core=./core/bin/demo.pkg/bin/$plat/$arch/demo.b xmake_core_install=$xmake_dir_install/xmake -sudo cp $xmake_core $xmake_core_install -sudo chmod 777 $xmake_core_install +cp $xmake_core $xmake_core_install +chmod 777 $xmake_core_install if [ $? -ne 0 ]; then echo "install xmake core failed!" exit; fi # install the xmake directory -sudo cp -r ./xmake/* $xmake_dir_install/ +cp -r ./xmake/* $xmake_dir_install/ if [ $? -ne 0 ]; then echo "install xmake directory failed!" exit; @@ -104,10 +104,10 @@ fi # install the xmake loader xmake_loader_install=$prefix/bin/xmake if [ ! -d $prefix/bin ]; then - sudo mkdir -p $prefix/bin + mkdir -p $prefix/bin fi -sudo mv $xmake_loader $xmake_loader_install -sudo chmod 777 $xmake_loader_install +mv $xmake_loader $xmake_loader_install +chmod 777 $xmake_loader_install if [ $? -ne 0 ]; then echo "install xmake loader failed!" exit; -- cgit v1.3.1