Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ARGS="$@"
- case "$1" in
- ci)
- shift
- DIFF=$(svn diff "$@" | grep --context 5 pdb.set_trace)
- if [ -n "$DIFF" ]; then
- echo "$DIFF"
- read -ep "Continue (y/N): " OK
- if [ "$OK" != "y" ]; then
- exit 0
- fi
- fi
- exec svn $ARGS
- ;;
- add)
- shift
- if [ -z "$@" ]; then
- exec svnaddall
- fi
- exec svn $ARGS
- ;;
- *)
- exec svn $ARGS
- ;;
- esac
Add Comment
Please, Sign In to add comment