Refactor chooseDisk function

This commit is contained in:
Manuel Thalmann 2023-04-01 12:34:35 +02:00
commit bd9fa2933e
2 changed files with 3 additions and 4 deletions
scripts/OS/Arch

View file

@ -1,7 +1,7 @@
pushd "${BASH_SOURCE%/*}" > /dev/null;
source "../../Scripts/choose-disk.sh";
chooseDisk archDisk "Which disk do you whish to format for installing Arch?";
archDisk="$(chooseDisk "Which disk do you whish 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)}')";