From fe9fbc8592146e6e9c7fe2f855903a0204cccd71 Mon Sep 17 00:00:00 2001 From: Abhiraj Roy <157954129+iconized@users.noreply.github.com> Date: Mon, 3 Jun 2024 01:31:03 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1perf(pull):=20pull=20first=20then=20pu?= =?UTF-8?q?sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Abhiraj Roy <157954129+iconized@users.noreply.github.com> --- push.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/push.sh b/push.sh index d3b5dced..8a6b2499 100755 --- a/push.sh +++ b/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 }