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
function install() {
local dir="$(realpath "${BASH_SOURCE%/*}")";
function installDrivers() {
. "$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";
}
alias installDrivers=". ${dir@Q}/scripts/drivers.sh";
alias initializeConfig=". ${dir@Q}/../../../scripts/Unix/Devices/Logitech G903/install.sh";
pushd "$dir" > /dev/null;
. "../../../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
function install() {
local dir="$(realpath "${BASH_SOURCE%/*}")";
function installDrivers() {
. "$dir/../../../scripts/Arch/Config/SecureBoot/install.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";
}
alias installDrivers=". ${dir@Q}/scripts/drivers.sh";
alias installSoftware=". ${dir@Q}/../../../scripts/Arch/Collections/school.sh";
alias initializeConfig=". ${dir@Q}/scripts/config.sh";
pushd "$dir" > /dev/null;
. "../../../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;