Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## pushthat for pushthat in /home/dupard_e/bin
- ##
- ## Made by Erwan Dupard
- ## Login <dupard_e@epitech.net>
- ##
- ## Started on Sat Dec 13 04:02:45 2014 Erwan Dupard
- ## Last update Mon Apr 27 14:02:45 2015 Erwan Dupard
- ##
- MESSAGE=$(curl --silent http://whatthecommit.com/index.txt)
- echo -e "\033[31m"
- echo -e "\033[1m"
- git add --all
- echo -e "\033[1m"
- echo -e "\033[32m"
- git commit -m "$MESSAGE"
- echo -e "\033[34m"
- echo -e "\033[1m"
- git push -f origin master
- echo -e "\033[1m"
- echo -e "\033[33m"
- LEN=$(cat .git/logs/HEAD | awk -F '\t' '{print $2}' | sed 's/commit://g' | sed 's/commit (initial)://g' | wc -l)
- echo "COMMITS ($LEN)"
- echo -e "\033[35m"
- echo -e "\033[1m"
- cat .git/logs/HEAD | awk -F '\t' '{print $2}' | sed 's/commit://g' | sed 's/commit (initial)://g'
- echo -e "\033[36m"
- echo -e "\033[1m"
- cowsay -f dragon $MESSAGE
- echo -e "\033[0m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement