diff --git a/hooks/pre-commit b/hooks/pre-commit index e61a738..3cf08ba 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -21,4 +21,10 @@ fi # generate patch ./make-patch.sh +# pause to read input if successful: +if [ $? -eq 0 ] +then + sleep 0.5 +fi + exit $? diff --git a/setup.sh b/setup.sh index 5528712..0808635 100755 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,6 @@ #!/bin/bash -echo "Seting git hoooks directory to hooks/" -git config core.hooksPath hooks +echo "Copying in git hooks" +cp -r hooks .git if [ -f base.nes ] then