fix pushing script (#12)

This commit is contained in:
Abhiraj Roy
2024-06-03 01:32:15 +05:30
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2024 Snigdha OS
Copyright (c) 2024 Snigdha OS Eshan Roy(eshanized) Abhiraj Roy(iconized)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -9,6 +9,10 @@
# to install commitizen. I have written this script only for *Arch Linux.
# Function to check if Commitizen is installed
pull_from_github(){
git pull
}
check_commitizen() {
if ! pacman -Qq commitizen-go &> /dev/null; then
echo "Commitizen is not installed. Please install it using 'yay -S commitizen-go'." >&2
@@ -25,6 +29,7 @@ push_to_github() {
# Main Function
main() {
pull_from_github
check_commitizen
push_to_github
}