Permalink
Browse files

Implemented custom backup messages #4

Signed-off-by: dhilipsiva <dhilipsiva@gmail.com>
  • Loading branch information...
1 parent 3cda329 commit da7efc88b2dfcc7a90817989b3d81570802ff54d @dhilipsiva committed Jul 4, 2013
Showing with 9 additions and 1 deletion.
  1. BIN .backup.sh.swp
  2. +9 −1 backup.sh
View
Binary file not shown.
View
@@ -21,7 +21,15 @@ echo 'adding files to git...'
@add
echo 'commiting changes if any...'
-@commit "Backup #4"
+read -p "Commit Message: " msg
+echo $msg
+if [ "$msg" = "" ]; then
+ msg="Backup #4"
+else
+ msg="$msg #4"
+fi
+echo $msg
+@commit "$msg"
echo 'syncing with remote'
@pull

1 comment on commit da7efc8

Owner

dhilipsiva commented on da7efc8 Jul 4, 2013

The commit message was inserted using the committed code. How cool is that?? Talk about recursion.
customcommitmessage

Please sign in to comment.