mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2019-08-23 2ea4062c8dd6d9406132d29979163c11c3560823
script to fix AUR when files changed locally
1 files added
7 ■■■■■ changed files
fix_AUR.sh 7 ●●●●● patch | view | raw | blame | history
fix_AUR.sh
New file
@@ -0,0 +1,7 @@
#!/bin/bash
CHDIR=$(dirname "$(realpath $0)")/chroot
mount --bind $CHDIR $CHDIR
$CHDIR/bin/arch-chroot $CHDIR su joel -c "find /build/repo/dependencies -maxdepth 1 -not -path '*\/.*' -type d -exec git -C {} fetch \; -exec git -C {} reset --hard origin/master \;
                                          find /build/repo -maxdepth 1 -not -path '*\/.*' -type d -exec git -C {} fetch \; -exec git -C {} reset --hard origin/master \;"
umount $CHDIR