19 lines
214 B
Bash
19 lines
214 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [[ "$UID" != 0 ]]; then
|
||
|
echo "USER NOT ROOT"
|
||
|
sudo "$0"
|
||
|
exit
|
||
|
else
|
||
|
echo "USER IS ROOT"
|
||
|
fi
|
||
|
|
||
|
pacman -Sy
|
||
|
pacman -S $(pacman -Qqen)
|
||
|
|
||
|
echo "Finish!"
|
||
|
|
||
|
echo "This window may close!"
|
||
|
|
||
|
sleep 5
|