SpectreOS-old/aurupdater.sh

21 lines
388 B
Bash
Raw Permalink Normal View History

2018-06-12 00:20:47 +02:00
#!/bin/bash
set -x
2018-06-12 00:32:01 +02:00
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
sudo "$0" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
exit 0
fi
2018-06-12 00:20:47 +02:00
username="user1"
echo "Durchsuche auf neue Packete indem fremde Packete angezeigt werden!!!"
# for-schleife
for wort in $(pacman -Qmq)
do
echo "$wort"
su "$username" -c "/usr/bin/aurinstaller ${wort}"
done