Browse Source

Changed install to avoid permissions changes in HOME

Spesk1 4 years ago
parent
commit
d2ab1660c1
1 changed files with 2 additions and 8 deletions
  1. 2 8
      install.sh

+ 2 - 8
install.sh

@@ -3,12 +3,6 @@
 installDir="$HOME/.local/bin/"
 libDir="/usr/local/lib/SimplyGit/"
 
-if [ $UID -ne 0 ]; then
-	echo "Run installer as root"
-	echo "Need to copy stuff to $libDir";
-	exit 1
-fi
-
 if [ ! -d $installDir ]; then
 	echo "Making $installDir"
 	mkdir -p $installDir
@@ -22,5 +16,5 @@ fi
 echo "Copying bin"
 cp ./sg $installDir
 
-echo "Copying libs"
-cp ./lib/SimplyGit/* $libDir
+echo "Calling sudo to copy libs"
+sudo cp ./lib/SimplyGit/* $libDir