Fix file paths in installation functions

This commit is contained in:
Manuel Thalmann 2024-06-19 02:14:24 +02:00
parent ae556b4b66
commit 16283bdb41
2 changed files with 26 additions and 22 deletions

View file

@ -1,19 +1,21 @@
#!/bin/bash -e #!/bin/bash -e
pushd "${BASH_SOURCE%/*}" > /dev/null; function install() {
local dir="$(realpath "${BASH_SOURCE%/*}")";
function installDrivers() { function installDrivers() {
local dir="${BASH_SOURCE%/*}";
. "$dir/../../../scripts/Arch/Config/SecureBoot/install.sh"; . "$dir/../../../scripts/Arch/Config/SecureBoot/install.sh";
. "$dir/../../../scripts/Arch/Software/nvidia-dkms/install.sh"; . "$dir/../../../scripts/Arch/Software/nvidia-dkms/install.sh";
. "$dir/../../../scripts/Arch/Software/xone/install.sh"; . "$dir/../../../scripts/Arch/Software/xone/install.sh";
. "$dir/../../../scripts/Arch/Software/bt-dualboot/install.sh"; . "$dir/../../../scripts/Arch/Software/bt-dualboot/install.sh";
} }
function initializeConfig() { function initializeConfig() {
local dir="${BASH_SOURCE%/*}";
. "$dir/../../../scripts/Unix/Devices/Logitech G903/install.sh"; . "$dir/../../../scripts/Unix/Devices/Logitech G903/install.sh";
}
pushd "$dir" > /dev/null;
. "../../../scripts/Arch/OS/install.sh";
popd > /dev/null;
} }
. "../../../scripts/Arch/OS/install.sh"; install;
popd > /dev/null;

View file

@ -1,11 +1,13 @@
#!/bin/bash -e #!/bin/bash -e
pushd "${BASH_SOURCE%/*}" > /dev/null; function install() {
local dir="$(realpath "${BASH_SOURCE%/*}")";
function installDrivers() { function installDrivers() {
local dir="${BASH_SOURCE%/*}";
. "$dir/../../../scripts/Arch/Config/SecureBoot/install.sh"; . "$dir/../../../scripts/Arch/Config/SecureBoot/install.sh";
}
. "../../../scripts/Arch/OS/install.sh";
} }
. "../../../scripts/Arch/OS/install.sh"; install;
popd > /dev/null;