Files
snigdhaos-arctic/test-push.sh
2024-05-02 21:28:27 +05:30

25 lines
446 B
Bash
Executable File

#!/bin/bash
# Function to check if Commitizen is installed
check_commitizen() {
if ! pacman -Qq commitizen-go &> /dev/null; then
echo "Commitizen is not installed. Please install it using 'yay -S commitizen-go'." >&2
exit 1
fi
}
# Function to stage, commit, and push changes
push_to_github() {
git add .
git cz
git push origin master
}
# Main script
main() {
check_commitizen
push_to_github
}
main