Skip to content

Commit ad3085c

Browse files
committed
fix: move git workdir to /home/pcr
1 parent 94934ca commit ad3085c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci/push-to-aur.bash

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@ ssh-keyscan 95.216.144.15 >> .ssh/known_hosts
2020
# Setup git
2121
alias mygit="git -c user.name=Méril\ Pilon -c [email protected]"
2222
mygit clone ssh://aur.archlinux.org/emacs-gcc-wayland-devel-bin.git
23-
cd emacs-gcc-wayland-devel-bin
23+
mv emacs-gcc-wayland-devel-bin /home/pcr
24+
chown -R pcr:pcr /home/pcr/emacs-gcc-wayland-devel-bin
25+
cd /home/pcr/emacs-gcc-wayland-devel-bin
2426

2527
# Amend package, set pkgver, sha512 sum and pkgrel + fix permissions
2628
sed -i -r -e 's~pkgver=.*~pkgver='$PKG_VERSION'~' PKGBUILD
2729
sed -i -r -e 's~sha512sums=.*~sha512sums=\("'"$sum"'"\)~' PKGBUILD
2830
sed -i -r -e 's/pkgrel=.*/pkgrel=1/' PKGBUILD
2931
rm .SRCINFO
30-
chown -R pcr:pcr .
3132
su pcr -c "makepkg --printsrcinfo" > .SRCINFO
32-
chown -R root:root .
33+
chown -R pcr:pcr .SRCINFO
3334

3435
# Push changes
3536
mygit add .SRCINFO PKGBUILD

0 commit comments

Comments
 (0)