From 860644bff57c7cc92ec9bc691367de3dc8ef50f8 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" <148610067+eshanized@users.noreply.github.com> Date: Tue, 18 Jun 2024 03:47:02 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20chore(remove):=20test=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-push.sh | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 test-push.sh diff --git a/test-push.sh b/test-push.sh deleted file mode 100755 index d3b5dce..0000000 --- a/test-push.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# Author : Eshan Roy -# URI : https://eshanized.github.io - -# NOTE: If you are on Snigdha OS, -# you can install commitizen-go with `sudo pacman -S commitizen-go` -# 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() { - git add . - git cz - git push origin master -} - -# Main Function -main() { - check_commitizen - push_to_github -} - -main