mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-22 04:25:02 +02:00
fix pushing script (#12)
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
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
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
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.
|
# to install commitizen. I have written this script only for *Arch Linux.
|
||||||
|
|
||||||
# Function to check if Commitizen is installed
|
# Function to check if Commitizen is installed
|
||||||
|
pull_from_github(){
|
||||||
|
git pull
|
||||||
|
}
|
||||||
|
|
||||||
check_commitizen() {
|
check_commitizen() {
|
||||||
if ! pacman -Qq commitizen-go &> /dev/null; then
|
if ! pacman -Qq commitizen-go &> /dev/null; then
|
||||||
echo "Commitizen is not installed. Please install it using 'yay -S commitizen-go'." >&2
|
echo "Commitizen is not installed. Please install it using 'yay -S commitizen-go'." >&2
|
||||||
@@ -25,6 +29,7 @@ push_to_github() {
|
|||||||
|
|
||||||
# Main Function
|
# Main Function
|
||||||
main() {
|
main() {
|
||||||
|
pull_from_github
|
||||||
check_commitizen
|
check_commitizen
|
||||||
push_to_github
|
push_to_github
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user