mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-21 20:14:59 +02:00
fix pushing script (#12)
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -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
|
||||
|
5
push.sh
5
push.sh
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user