mirror of
https://github.com/Snigdha-OS/snigdhaos-kernel-switcher.git
synced 2025-09-07 07:35:13 +02:00
🐎 perf(n/a): clean up
Signed-off-by: Abhiraj Roy <157954129+iconized@users.noreply.github.com>
This commit is contained in:
27
push.sh
27
push.sh
@@ -1,31 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Author : Eshan Roy
|
# Iconized
|
||||||
# URI : https://eshanized.github.io
|
|
||||||
|
|
||||||
# NOTE: If you are on Snigdha OS,
|
pull_from_github(){
|
||||||
# you can install commitizen-go with `sudo pacman -S commitizen-go`
|
git pull
|
||||||
# or `s commitizen-go`. Else you need to install `yay` or `yay-bin`
|
|
||||||
# to install commitizen. I have written this script only for *Arch Linux.
|
|
||||||
|
|
||||||
# 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() {
|
push_to_github() {
|
||||||
|
# git pull
|
||||||
git add .
|
git add .
|
||||||
git cz
|
ezcommits
|
||||||
git push origin master
|
git push -u origin master
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main Function
|
main(){
|
||||||
main() {
|
pull_from_github
|
||||||
check_commitizen
|
|
||||||
push_to_github
|
push_to_github
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/bin/python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import functions as fn
|
import functions as fn
|
||||||
|
Reference in New Issue
Block a user