Skip to content

Commit

Permalink
refactor(bash)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeddnyx committed Jun 14, 2024
1 parent 4fa8a14 commit c24fbb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git_auto
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ commit_message="$1"
branch="$2"

echo "Building the Next.js app..."
npm run build
#npm run build

git add .
git commit -m "$commit_message"

while true; do
read -p "[1] Confirm\n[2] Change commit\nEnter your choice? (1: Default)" choice
printf "[1] Confirm\n[2] Change commit\n"
read -p "Enter your choice? (1: Default)" choice
case $choice in
1)
echo "Pushing changes to the $branch branch..."
Expand Down

0 comments on commit c24fbb6

Please sign in to comment.