PortValhalla/scripts/Arch/Software/sudo/install.sh

14 lines
231 B
Bash
Raw Normal View History

2023-04-03 09:00:11 +00:00
#!/bin/bash
# Elevate script
pushd "${BASH_SOURCE%/*}" > /dev/null;
2023-04-03 09:00:11 +00:00
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
else
pacman --noconfirm -Syu sudo;
source "../../Config/sudo/install.sh";
fi;
popd > /dev/null;