Fix working directory issues during installation
This commit is contained in:
parent
2979138e66
commit
9d045f40f0
5 changed files with 26 additions and 29 deletions
|
@ -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";
|
||||
|
|
7
profiles/DerGeret/Arch/scripts/drivers.sh
Executable file
7
profiles/DerGeret/Arch/scripts/drivers.sh
Executable 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;
|
|
@ -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";
|
||||
|
|
9
profiles/ManuSurface/Arch/scripts/config.sh
Executable file
9
profiles/ManuSurface/Arch/scripts/config.sh
Executable 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;
|
5
profiles/ManuSurface/Arch/scripts/drivers.sh
Executable file
5
profiles/ManuSurface/Arch/scripts/drivers.sh
Executable 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;
|
Loading…
Reference in a new issue