mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 13:18:35 -06:00
fix: Use correct env var
This commit is contained in:
parent
969146bf98
commit
1acd0fd45a
1 changed files with 5 additions and 5 deletions
10
update-aur-lure.sh
Normal file → Executable file
10
update-aur-lure.sh
Normal file → Executable file
|
@ -11,13 +11,13 @@ if [ "$#" -ne 2 ]; then
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# xdg-user-dirs is used to get the directory for the repos
|
# GITDIR env variable should be set for this to work
|
||||||
GIT_DIR=$(xdg-user-dir DOCUMENTS)/git
|
[ -z $GITDIR ] && exit -1
|
||||||
VERS="$2"
|
VERS="$2"
|
||||||
|
|
||||||
# Do the updates for AUR
|
# Do the updates for AUR
|
||||||
echo "Updating AUR..."
|
echo "Updating AUR..."
|
||||||
cd "$GIT_DIR/AUR"
|
cd "$GITDIR/AUR"
|
||||||
[ -d "$1" ] && PKG="$1" || PKG="$1-bin"
|
[ -d "$1" ] && PKG="$1" || PKG="$1-bin"
|
||||||
|
|
||||||
cd "$PKG"
|
cd "$PKG"
|
||||||
|
@ -33,7 +33,7 @@ git push
|
||||||
|
|
||||||
# Update the GitHub backup repo as well
|
# Update the GitHub backup repo as well
|
||||||
echo "Updating AUR backup repo..."
|
echo "Updating AUR backup repo..."
|
||||||
cd "$GIT_DIR/AUR Mirror GitHub/$PKG"
|
cd "$GITDIR/AUR Mirror GitHub/$PKG"
|
||||||
sed -i -E "s/pkgver=[0-9\.]+/pkgver=$VERS/" PKGBUILD
|
sed -i -E "s/pkgver=[0-9\.]+/pkgver=$VERS/" PKGBUILD
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Bumped $PKG version to $VERS"
|
git commit -m "Bumped $PKG version to $VERS"
|
||||||
|
@ -41,7 +41,7 @@ git push
|
||||||
|
|
||||||
# Do the updates for LURE
|
# Do the updates for LURE
|
||||||
echo "Updating LURE repo..."
|
echo "Updating LURE repo..."
|
||||||
cd "$GIT_DIR/lure-repo"
|
cd "$GITDIR/lure-repo"
|
||||||
[ -d "$1" ] && PKG="$1" || PKG="$1-bin"
|
[ -d "$1" ] && PKG="$1" || PKG="$1-bin"
|
||||||
cd "$PKG"
|
cd "$PKG"
|
||||||
sed -i -E "s/version=[0-9\.]+/version=$VERS/" lure.sh
|
sed -i -E "s/version=[0-9\.]+/version=$VERS/" lure.sh
|
||||||
|
|
Loading…
Reference in a new issue