From 5efd04dc7fec7e2df159ae5c13443501e133a53f Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 1 Apr 2023 03:04:12 +0200 Subject: [PATCH] Fix broken script --- scripts/OS/Arch/partition.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/OS/Arch/partition.sh b/scripts/OS/Arch/partition.sh index c7cd8256..e3f59fd8 100755 --- a/scripts/OS/Arch/partition.sh +++ b/scripts/OS/Arch/partition.sh @@ -1,7 +1,7 @@ pushd "${BASH_SOURCE%/*}" > /dev/null; 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="$(echo "$memory" | awk '{ print int(($1 / 1024 / 1024) + 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 "w"; -} | fdisk "$disk"; +} | fdisk "$archDisk"; popd > /dev/null;