diff --git a/scripts/Arch/OS/partition.sh b/scripts/Arch/OS/partition.sh index 5056e886..fb14e52c 100755 --- a/scripts/Arch/OS/partition.sh +++ b/scripts/Arch/OS/partition.sh @@ -5,7 +5,12 @@ ARCH_DISK="${ARCH_DISK}"; memory="$(cat /proc/meminfo | awk -F " " '/^MemTotal/ { print $2 }')"; swapSize="$(echo "$memory" | awk '{ print int(($1 / 1024 / 1024 4) + 0.5)}')"; -if [ -z "$ARCH_DISK" ] || [ ! -e "/dev/$ARCH_DISK" ] +if [ ! -z "$ARCH_DISK" ] && [ ! -e "$ARCH_DISK" ] +then + ARCH_DISK="/dev/${ARCH_DISK}" +fi; + +if [ -z "$ARCH_DISK" ] || [ ! -e "$ARCH_DISK" ] then chooseDisk ARCH_DISK "Which disk do you wish to format for installing Arch?"; fi;