2022-10-04 19:01:31 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2023-04-06 14:59:19 +02:00
|
|
|
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!!!"
|
|
|
|
|
2023-07-13 18:57:20 +02:00
|
|
|
# for-schleife für verwaiste Packete vom AUR
|
2022-10-04 19:01:31 +02:00
|
|
|
for wort in $(pacman -Qmq)
|
|
|
|
do
|
|
|
|
echo "$wort"
|
2023-07-13 18:57:20 +02:00
|
|
|
/usr/bin/aurinstaller ${wort}
|
2022-10-04 19:01:31 +02:00
|
|
|
done
|