Fix relative paths in ManuSurface install script

This commit is contained in:
Manuel Thalmann 2024-06-23 17:06:29 +02:00
parent ea908b5255
commit 568313c06a

View file

@ -1,28 +1,28 @@
#!/bin/bash -e
pushd "${BASH_SOURCE%/*}" > /dev/null;
function install() {
local dir="$(realpath "${BASH_SOURCE%/*}")";
function installDrivers() {
local dir="${BASH_SOURCE%/*}";
function installDrivers() {
. "$dir/../../../scripts/Arch/Config/SecureBoot/install.sh";
. "$dir/../../../scripts/Arch/Drivers/SurfaceBook2/install.sh";
}
}
function installSoftware() {
local dir="${BASH_SOURCE%/*}";
function installSoftware() {
. "$dir/../../../scripts/Arch/Collections/school.sh";
}
}
function initializeConfig() {
local dir="${BASH_SOURCE%/*}";
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;
. "../../../scripts/Arch/OS/install.sh";
popd > /dev/null;
}
. "../../../scripts/Arch/OS/install.sh";
popd > /dev/null;
install;