From a4beabf4b940b65c26ce056e9bffc50e2d34b908 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 18 Dec 2018 21:27:39 +1100 Subject: improved pre-push test script --- test/hooks/pre-push | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/hooks') diff --git a/test/hooks/pre-push b/test/hooks/pre-push index 156b9664c..b7cb2e87b 100644 --- a/test/hooks/pre-push +++ b/test/hooks/pre-push @@ -16,7 +16,10 @@ read username echo -n "Password for 'github': " read password -# echo "failed" -# exit 1 +if [ "$username" = "username" -a "$password" = "password" ]; then + echo "success" + exit 0 +fi -exit 0 \ No newline at end of file +>&2 echo "incorrect username/password" +exit 1 -- cgit v1.2.3