Fix working directory issues during installation

This commit is contained in:
Manuel Thalmann 2024-06-26 15:49:03 +02:00
parent 2979138e66
commit 9d045f40f0
5 changed files with 26 additions and 29 deletions

View file

@ -1,17 +1,8 @@
#!/bin/bash -e #!/bin/bash -e
function install() { function install() {
local dir="$(realpath "${BASH_SOURCE%/*}")"; local dir="$(realpath "${BASH_SOURCE%/*}")";
alias installDrivers=". ${dir@Q}/scripts/drivers.sh";
function installDrivers() { alias initializeConfig=". ${dir@Q}/../../../scripts/Unix/Devices/Logitech G903/install.sh";
. "$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";
}
function initializeConfig() {
. "$dir/../../../scripts/Unix/Devices/Logitech G903/install.sh";
}
pushd "$dir" > /dev/null; pushd "$dir" > /dev/null;
. "../../../scripts/Arch/OS/install.sh"; . "../../../scripts/Arch/OS/install.sh";

View file

@ -0,0 +1,7 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "$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";
popd > /dev/null;

View file

@ -1,24 +1,9 @@
#!/bin/bash -e #!/bin/bash -e
function install() { function install() {
local dir="$(realpath "${BASH_SOURCE%/*}")"; local dir="$(realpath "${BASH_SOURCE%/*}")";
alias installDrivers=". ${dir@Q}/scripts/drivers.sh";
function installDrivers() { alias installSoftware=". ${dir@Q}/../../../scripts/Arch/Collections/school.sh";
. "$dir/../../../scripts/Arch/Config/SecureBoot/install.sh"; alias initializeConfig=". ${dir@Q}/scripts/config.sh";
. "$dir/../../../scripts/Arch/Drivers/SurfaceBook2/install.sh";
}
function installSoftware() {
. "$dir/../../../scripts/Arch/Collections/school.sh";
}
function initializeConfig() {
. "$dir/../../../scripts/Common/Config/Steam/hidpi.sh";
. "$dir/../../../scripts/Unix/Devices/Surface Book 2/install.sh";
. "$dir/../../../scripts/Unix/Devices/Logitech G903/install.sh";
# Because, as it looks, Surface Books are fucking stupid.
. "$dir/../../../scripts/Common/Config/GRUB/verbose.sh";
}
pushd "$dir" > /dev/null; pushd "$dir" > /dev/null;
. "../../../scripts/Arch/OS/install.sh"; . "../../../scripts/Arch/OS/install.sh";

View file

@ -0,0 +1,9 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "../../../scripts/Common/Config/Steam/hidpi.sh";
. "../../../scripts/Unix/Devices/Surface Book 2/install.sh";
. "../../../scripts/Unix/Devices/Logitech G903/install.sh";
# Because, as it looks, Surface Books are fucking stupid.
. "$dir/../../../scripts/Common/Config/GRUB/verbose.sh";
popd > /dev/null;

View file

@ -0,0 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "../../../scripts/Arch/Config/SecureBoot/install.sh";
. "../../../scripts/Arch/Drivers/SurfaceBook2/install.sh";
popd > /dev/null;