Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.87 KB | None | 0 0
  1. #!/bin/bash
  2. ## pushthat for pushthat in /home/dupard_e/bin
  3. ##
  4. ## Made by Erwan Dupard
  5. ## Login   <dupard_e@epitech.net>
  6. ##
  7. ## Started on  Sat Dec 13 04:02:45 2014 Erwan Dupard
  8. ## Last update Mon Apr 27 14:02:45 2015 Erwan Dupard
  9. ##
  10.  
  11. MESSAGE=$(curl --silent http://whatthecommit.com/index.txt)
  12. echo -e "\033[31m"
  13. echo -e "\033[1m"
  14. git add --all
  15. echo -e "\033[1m"
  16. echo -e "\033[32m"
  17. git commit -m "$MESSAGE"
  18. echo -e "\033[34m"
  19. echo -e "\033[1m"
  20. git push -f origin master
  21. echo -e "\033[1m"
  22. echo -e "\033[33m"
  23. LEN=$(cat .git/logs/HEAD | awk -F '\t' '{print $2}' | sed 's/commit://g' | sed 's/commit (initial)://g' | wc -l)
  24. echo "COMMITS ($LEN)"
  25. echo -e "\033[35m"
  26. echo -e "\033[1m"
  27. cat .git/logs/HEAD | awk -F '\t' '{print $2}' | sed 's/commit://g' | sed 's/commit (initial)://g'
  28. echo -e "\033[36m"
  29. echo -e "\033[1m"
  30. cowsay -f dragon $MESSAGE
  31. echo -e "\033[0m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement