diff options
| author | ruki <[email protected]> | 2016-01-07 21:35:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-01-07 21:35:37 +0800 |
| commit | 8cdeb5237b0f86226fe34e8245f78f09a59668f9 (patch) | |
| tree | 342b3b2ab85a973abda30cff1a3226bbec085e8c | |
| parent | f0cb8a939a7dac0959d9f2343a5d56c446f0292a (diff) | |
remove sudo for install script
| -rwxr-xr-x | install | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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; |
