From f171894cfa089eb549097e4660630dc216995fa5 Mon Sep 17 00:00:00 2001 From: webpwnized Date: Sun, 1 Oct 2023 18:08:25 -0400 Subject: [PATCH] 1.0.14 Updated Apache and Mutillidae --- scripts/git.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/scripts/git.sh b/scripts/git.sh index cc034fa..af25950 100755 --- a/scripts/git.sh +++ b/scripts/git.sh @@ -6,7 +6,18 @@ then exit 1 fi -sudo git tag -a $1 -m "$2" -sudo git commit -a -m "$1 $2" -sudo git push --tag -sudo git push +VERSION=$1 +ANNOTATION=$2 + +echo "Creating tag $VERSION with annotation \"$ANNOTATION\"" +git tag -a $VERSION -m "$ANNOTATION" + +echo "Commiting version $VERSION to local branch" +git commit -a -m "$VERSION $ANNOTATION" + +echo "Pushing tag $VERSION" +git push --tag + +echo "Pushing version $VERSION to upstream" +git push +