summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-01-07 21:35:37 +0800
committerruki <[email protected]>2016-01-07 21:35:37 +0800
commit8cdeb5237b0f86226fe34e8245f78f09a59668f9 (patch)
tree342b3b2ab85a973abda30cff1a3226bbec085e8c
parentf0cb8a939a7dac0959d9f2343a5d56c446f0292a (diff)
remove sudo for install script
-rwxr-xr-xinstall16
1 files 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;