From 55a7b54bcf2db536a4a3b80865c59a59b0c9fa91 Mon Sep 17 00:00:00 2001
From: SinTan1729 <sayantan.santra689@gmail.com>
Date: Wed, 13 Sep 2023 18:20:43 -0500
Subject: [PATCH] fix: AUR Update

---
 update-aur-lure.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/update-aur-lure.sh b/update-aur-lure.sh
index 90b2c81..9579fba 100644
--- a/update-aur-lure.sh
+++ b/update-aur-lure.sh
@@ -17,9 +17,10 @@ VERS="$2"
 
 # Do the updates for AUR
 echo "Updating AUR..."
+cd "$GIT_DIR/AUR"
 [ -d "$1" ] && PKG="$1" || PKG="$1-bin"
 
-cd "$GIT_DIR/AUR/$PKG"
+cd "$PKG"
 sed -i -E "s/pkgver=[0-9\.]+/pkgver=$VERS/" PKGBUILD
 updpkgsums
 makepkg --printsrcinfo >.SRCINFO
@@ -40,7 +41,7 @@ git push
 
 # Do the updates for LURE
 echo "Updating LURE repo..."
-cd "$GIT_DIR/lure-repo/"
+cd "$GIT_DIR/lure-repo"
 [ -d "$1" ] && PKG="$1" || PKG="$1-bin"
 cd "$PKG"
 sed -i -E "s/version=[0-9\.]+/version=$VERS/" lure.sh