From bf662f91d3b2d4b90dd8c3d5d13d0570d718ff32 Mon Sep 17 00:00:00 2001 From: nstbayless Date: Sat, 26 Aug 2017 23:28:35 -0700 Subject: [PATCH] Fixed pre-commit hook and setup to copy in githooks --- hooks/pre-commit | 6 ++++++ setup.sh | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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