install.sh 428 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. installDir="$HOME/.local/bin/"
  3. libDir="/usr/local/lib/SimplyGit/"
  4. if [ $UID -ne 0 ]; then
  5. echo "Run installer as root"
  6. echo "Need to copy stuff to $libDir";
  7. exit 1
  8. fi
  9. if [ ! -d $installDir ]; then
  10. echo "Making $installDir"
  11. mkdir -p $installDir
  12. fi
  13. if [ ! -d $libDir ]; then
  14. echo "Making $libDir"
  15. mkdir -p $libDir
  16. fi
  17. echo "Copying bin"
  18. cp ./sg $installDir
  19. echo "Copying libs"
  20. cp ./lib/SimplyGit/* $libDir