Fix more bugs in mountPart()
This commit is contained in:
parent
a2baeb7b46
commit
5dc6f7667d
|
@ -165,9 +165,13 @@ mountPart() {
|
||||||
local IFS=' '
|
local IFS=' '
|
||||||
result=$(whiptail --inputbox "Enter the absolute path." 0 0 3>&1 1>&2 2>&3)
|
result=$(whiptail --inputbox "Enter the absolute path." 0 0 3>&1 1>&2 2>&3)
|
||||||
exitIfCancel "You must enter a path." "partDisks"
|
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
|
while [[ ! -d "$result" ]]; do
|
||||||
result=$(whiptail --inputbox "Path isn't valid. Please try again" 0 0 3>&1 1>&2 2>&3)
|
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
|
done
|
||||||
fi
|
fi
|
||||||
mount "$bootPart" "/mnt/$result" 2>&1 | debug
|
mount "$bootPart" "/mnt/$result" 2>&1 | debug
|
||||||
|
|
Loading…
Reference in New Issue