melawy-linux-welcome/scripts/reinstall_all_packages.sh

19 lines
214 B
Bash
Raw Normal View History

2025-01-23 16:26:46 +05:00
#!/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