Advertisement
Guest User

Bash Script

a guest
Apr 10th, 2016
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #!/bin/bash
  2. #Git Puller / Pusher for MobArenaBattles
  3.  
  4. echo "Please type whether you want to pull or push:"
  5.  
  6. read proc
  7. cd $HOME/Desktop/IdeaProjects/Plugins/MobArenaBattles
  8.  
  9. if ["$proc"="push"]; then
  10.   echo "Please type the commit message:"
  11.   read message
  12.   git status
  13.   git add -A
  14.   git commit -m $message
  15.   git push
  16. elif ["$proc"="pull"]; then
  17.   git status
  18.   git pull
  19. else
  20.   echo "Invalid choice! Exiting."
  21. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement