Reorder script commands properly

This commit is contained in:
Manuel Thalmann 2023-04-01 13:38:50 +02:00
parent 3f8f00688a
commit d7238d019f

View file

@ -1,7 +1,7 @@
pushd "${BASH_SOURCE%/*}" > /dev/null;
ARCH_DISK="${ARCH_DISK:-$(chooseDisk "Which disk do you wish to format for installing Arch?")}";
source "../../Scripts/choose-disk.sh";
ARCH_DISK="${ARCH_DISK:-$(chooseDisk "Which disk do you wish to format for installing Arch?")}";
memory="$(cat /proc/meminfo | awk -F " " '/^MemTotal/ { print $2 }')";
swapSize="$(echo "$memory" | awk '{ print int(($1 / 1024 / 1024 4) + 0.5)}')";