d2ab1660c12f045f2865943e440c0be38cab797e
commit d2ab1660c12f045f2865943e440c0be38cab797e
Author: Spesk1 <spesk@pm.me>
Date: Sat Jun 1 19:54:57 2019 -0400

Changed install to avoid permissions changes in HOME

diff --git a/install.sh b/install.sh
index 8785b5a..42e2673 100755
--- a/install.sh
+++ b/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