Fix file paths in installation functions
This commit is contained in:
parent
ae556b4b66
commit
16283bdb41
2 changed files with 26 additions and 22 deletions
|
@ -1,8 +1,8 @@
|
||||||
#!/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";
|
||||||
|
@ -10,10 +10,12 @@ function installDrivers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
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";
|
. "../../../scripts/Arch/OS/install.sh";
|
||||||
|
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
|
}
|
||||||
|
|
||||||
|
install;
|
||||||
|
|
|
@ -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";
|
|
||||||
|
|
||||||
popd > /dev/null;
|
. "../../../scripts/Arch/OS/install.sh";
|
||||||
|
}
|
||||||
|
|
||||||
|
install;
|
||||||
|
|
Loading…
Reference in a new issue