14 lines
231 B
Bash
Executable file
14 lines
231 B
Bash
Executable file
#!/bin/bash
|
|
# Elevate script
|
|
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
|
|
|
if [ ! "$UID" -eq 0 ]
|
|
then
|
|
sudo bash "$BASH_SOURCE";
|
|
else
|
|
pacman --noconfirm -Syu sudo;
|
|
source "../../Config/sudo/install.sh";
|
|
fi;
|
|
|
|
popd > /dev/null;
|