mirror of
https://github.com/Snigdha-OS/snigdhaos-gnome-config.git
synced 2025-09-21 04:34:57 +02:00
🛠 refactor(_rem): confirmation
This commit is contained in:
9
push.sh
9
push.sh
@@ -67,13 +67,6 @@ fi
|
|||||||
echo -e "\nCommit message:"
|
echo -e "\nCommit message:"
|
||||||
echo -e "\033[1;36m$commit_msg\033[0m"
|
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
|
# Stage all changes
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
@@ -90,4 +83,4 @@ if git push origin "$branch"; then
|
|||||||
echo -e "\033[1;32mChanges pushed to remote branch '$branch'.\033[0m"
|
echo -e "\033[1;32mChanges pushed to remote branch '$branch'.\033[0m"
|
||||||
else
|
else
|
||||||
error_exit "Push failed. Please check your connection or branch permissions."
|
error_exit "Push failed. Please check your connection or branch permissions."
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user