From e5d888de1c587003053d0f1a9c1bdebf847b9e91 Mon Sep 17 00:00:00 2001 From: despiegk Date: Sat, 13 Jan 2024 09:38:43 +0300 Subject: [PATCH] something --- push_code.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/push_code.sh b/push_code.sh index a9d8231..541bf4c 100755 --- a/push_code.sh +++ b/push_code.sh @@ -1,7 +1,10 @@ #!/usr/bin/env bash -set -ex +set -e MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$MYDIR" -git add . -A ; git commit -m "how not to commit"; git push \ No newline at end of file +echo "Enter the commit message:" +read commit_message + +git add . -A ; git commit -m "$commit_message"; git push \ No newline at end of file