Fix broken script

This commit is contained in:
Manuel Thalmann 2023-04-01 03:04:12 +02:00
parent 17ef3882c1
commit 5efd04dc7f

View file

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