🛠 refactor(_rem): confirmation

This commit is contained in:
Eshan Roy
2024-12-13 13:37:39 +05:30
parent 7569691c2b
commit 4fcd3fdb88

View File

@@ -67,13 +67,6 @@ fi
echo -e "\nCommit message:"
echo -e "\033[1;36m$commit_msg\033[0m"
# Confirm before committing
read -p "Do you want to proceed with this commit? (y/n): " confirm
if [[ "$confirm" != "y" && "$confirm" != "Y" ]]; then
echo "Commit aborted."
exit 0
fi
# Stage all changes
git add .
@@ -90,4 +83,4 @@ if git push origin "$branch"; then
echo -e "\033[1;32mChanges pushed to remote branch '$branch'.\033[0m"
else
error_exit "Push failed. Please check your connection or branch permissions."
fi
fi