remove all aur-builds after archlinux iso generated

This commit is contained in:
Simon Rieger 2023-07-13 18:57:20 +02:00
parent 37744c319a
commit 54f85d8fa8
2 changed files with 4 additions and 4 deletions

View file

@ -737,6 +737,8 @@ if [ "${archisoinstall}" == "y" ]; then
links links
rm -Rv /home/${user}/aur-builds
pacman -Qq > /pkglist.txt pacman -Qq > /pkglist.txt
if [ $(ls /var/cache/pacman/pkg | wc -w) -gt 0 ]; then if [ $(ls /var/cache/pacman/pkg | wc -w) -gt 0 ]; then
rm -R /var/cache/pacman/pkg/* rm -R /var/cache/pacman/pkg/*

View file

@ -11,11 +11,9 @@ fi
echo "Durchsuche auf neue Packete indem fremde Packete angezeigt werden!!!" echo "Durchsuche auf neue Packete indem fremde Packete angezeigt werden!!!"
# for-schleife # for-schleife für verwaiste Packete vom AUR
for wort in $(pacman -Qmq) for wort in $(pacman -Qmq)
do do
echo "$wort" echo "$wort"
if [ -d "/home/${user}/aur-builds/${wort}" ];then
/usr/bin/aurinstaller ${wort} /usr/bin/aurinstaller ${wort}
fi
done done