SpectreOS/scripts/aurupdater.sh

20 lines
411 B
Bash
Raw Normal View History

2022-10-04 19:01:31 +02:00
#!/usr/bin/env bash
set -x
if cat /etc/passwd | grep "x:1000" > /dev/null; then
tempuser=$(cat /etc/passwd | grep "x:1000" | 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 für verwaiste Packete vom AUR
2022-10-04 19:01:31 +02:00
for wort in $(pacman -Qmq)
do
echo "$wort"
/usr/bin/aurinstaller ${wort}
2022-10-04 19:01:31 +02:00
done