SpectreOS/scripts/aurupdater.sh

22 lines
445 B
Bash
Raw Normal View History

2022-10-04 19:01:31 +02:00
#!/usr/bin/env bash
set -x
2023-04-06 14:43:46 +02:00
if cat /etc/passwd | grep "x:2000" > /dev/null; then
tempuser=$(cat /etc/passwd | grep "x:2000" | awk '{print $1}')
2022-10-04 19:01:31 +02:00
user=${tempuser%%:*}
else
user=$(whoami)
fi
echo "Durchsuche auf neue Packete indem fremde Packete angezeigt werden!!!"
# for-schleife
for wort in $(pacman -Qmq)
do
echo "$wort"
if [ -d "/home/${user}/aur-builds/${wort}" ];then
/usr/bin/aurinstaller ${wort}
fi
done