From 062259948606258f11b26e1c7d0460842e7e001d Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt <aaronhoneycutt@protonmail.com> Date: Mon, 17 Apr 2023 19:10:32 +0000 Subject: [PATCH] Update install.sh --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index c14d61c..b854ceb 100644 --- a/install.sh +++ b/install.sh @@ -35,28 +35,28 @@ echo 19 # Change last partition to Swap. echo w # write changes. ) | sudo fdisk $driveName -w always -W always -if [ $driveName == /dev/nvme* ]; then +if [ $driveName = /dev/nvme* ]; then # Set variables efiName=${driveName}p1 rootName=${driveName}p2 swapName=${driveName}p3 # Check if the device is a SATA drive -elif [ $driveName == /dev/sd* ]; then +elif [ $driveName = /dev/sd* ]; then # Set variables efiName=${driveName}1 rootName=${driveName}2 swapName=${driveName}3 # Check if the device is a Virtual drive -elif [ $driveName == /dev/vd* ]; then +elif [ $driveName = /dev/vd* ]; then # Set variables efiName="{$driveName}1" rootName="{$driveName}2" swapName="{$driveName}3" # Check if the device is an eMMC drive -elif [ $driveName == /dev/mmcblk* ]; then +elif [ $driveName = /dev/mmcblk* ]; then # Set variables efiName=${driveName}1 rootName=${driveName}2