Skip to content

Commit

Permalink
Added cmsg.sh, what the commit wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
2KAbhishek committed Aug 13, 2019
1 parent 9d44d29 commit 54968bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Scripts/cmsg.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash
# Funny git commit messages

while [[ "$input" != "Y" || "$input" != "y" ]]
while [ 1 ]
do
msg=$(curl whatthecommit.com|\grep '<p>'|sed 's/<p>//g')
echo -e "Commit with \u001b[32;1m '$msg' \u001b[0m? (Y/n)"
read input
if [[ "$input" == "Y" || "$input" == "y" ]];
then git commit -m "$msg"
then
git commit -m "$msg"
exit
fi
done

0 comments on commit 54968bf

Please sign in to comment.