Change chdir of sudo installation properly

This commit is contained in:
Manuel Thalmann 2023-04-03 11:09:32 +02:00
parent e04f236adf
commit 94c89e6762

View file

@ -1,5 +1,7 @@
#!/bin/bash
# Elevate script
pushd "${BASH_SOURCE%/*}" > /dev/null;
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
@ -7,3 +9,5 @@ else
pacman --noconfirm -Syu sudo;
source "../../Config/sudo/install.sh";
fi;
popd > /dev/null;