diff --git a/install.sh b/install.sh index 683583d..6bc0c93 100755 --- a/install.sh +++ b/install.sh @@ -165,9 +165,13 @@ mountPart() { local IFS=' ' result=$(whiptail --inputbox "Enter the absolute path." 0 0 3>&1 1>&2 2>&3) exitIfCancel "You must enter a path." "partDisks" - mkdir -p "/mnt/$result" + bootPath=$(echo $result | sed 's/^\///g') + mkdir -p "/mnt/$bootPath" while [[ ! -d "$result" ]]; do result=$(whiptail --inputbox "Path isn't valid. Please try again" 0 0 3>&1 1>&2 2>&3) + exitIfCancel "You must enter a path." "partDisks" + bootPath=$(echo $result | sed 's/^\///g') + mkdir -p "/mnt/$bootPath" done fi mount "$bootPart" "/mnt/$result" 2>&1 | debug