Prevent working directory confusion

This commit is contained in:
Manuel Thalmann 2024-03-27 09:29:54 +01:00
parent 73e2cb1a22
commit 5cec938753
2 changed files with 12 additions and 8 deletions

View file

@ -2,10 +2,11 @@
pushd "${BASH_SOURCE%/*}" > /dev/null;
function installDrivers() {
. "../../../scripts/Arch/Config/SecureBoot/install.sh";
. "../../../scripts/Arch/Software/nvidia-dkms/install.sh";
. "../../../scripts/Arch/Software/xone/install.sh";
. "../../../scripts/Arch/Software/bt-dualboot/install.sh";
local dir="${BASH_SOURCE%/*}";
. "$dir/../../../scripts/Arch/Config/SecureBoot/install.sh";
. "$dir/../../../scripts/Arch/Software/nvidia-dkms/install.sh";
. "$dir/../../../scripts/Arch/Software/xone/install.sh";
. "$dir/../../../scripts/Arch/Software/bt-dualboot/install.sh";
}
. "../../../scripts/Arch/OS/install.sh";

View file

@ -2,16 +2,19 @@
pushd "${BASH_SOURCE%/*}" > /dev/null;
function installDrivers() {
. "../../../scripts/Arch/Config/SecureBoot/install.sh";
. "../../../scripts/Arch/Drivers/SurfaceBook2/install.sh";
local dir="${BASH_SOURCE%/*}";
. "$dir/../../../scripts/Arch/Config/SecureBoot/install.sh";
. "$dir/../../../scripts/Arch/Drivers/SurfaceBook2/install.sh";
}
function installSoftware() {
. "../../../scripts/Arch/Collections/school.sh";
local dir="${BASH_SOURCE%/*}";
. "$dir/../../../scripts/Arch/Collections/school.sh";
}
function initializeConfig() {
. "../../../scripts/Common/Config/Steam/hidpi.sh";
local dir="${BASH_SOURCE%/*}";
. "$dir/../../../scripts/Common/Config/Steam/hidpi.sh";
}
. "../../../scripts/Arch/OS/install.sh";