mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-02 08:06:17 +00:00
Update share-common.func
This commit is contained in:
@@ -267,7 +267,7 @@ pmx_select_host_mount_point() {
|
|||||||
|
|
||||||
select_host_directory_() {
|
select_host_directory_() {
|
||||||
local method choice result
|
local method choice result
|
||||||
|
clear
|
||||||
method=$(whiptail --title "$(translate "Select Host Directory")" --menu "$(translate "How do you want to select the HOST folder to mount?")" 15 70 4 \
|
method=$(whiptail --title "$(translate "Select Host Directory")" --menu "$(translate "How do you want to select the HOST folder to mount?")" 15 70 4 \
|
||||||
"mnt" "$(translate "Select from /mnt directories")" \
|
"mnt" "$(translate "Select from /mnt directories")" \
|
||||||
"manual" "$(translate "Enter path manually")" 3>&1 1>&2 2>&3) || return 1
|
"manual" "$(translate "Enter path manually")" 3>&1 1>&2 2>&3) || return 1
|
||||||
@@ -288,12 +288,12 @@ select_host_directory_() {
|
|||||||
msg_error "$(translate "No directories found in") $base_path"
|
msg_error "$(translate "No directories found in") $base_path"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
clear
|
|
||||||
result=$(whiptail --title "$(translate "Select Host Folder")" \
|
result=$(whiptail --title "$(translate "Select Host Folder")" \
|
||||||
--menu "$(translate "Select the folder to mount:")" 20 80 10 "${options[@]}" 3>&1 1>&2 2>&3)
|
--menu "$(translate "Select the folder to mount:")" 20 80 10 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||||
;;
|
;;
|
||||||
manual)
|
manual)
|
||||||
clear
|
|
||||||
result=$(whiptail --title "$(translate "Enter Path")" \
|
result=$(whiptail --title "$(translate "Enter Path")" \
|
||||||
--inputbox "$(translate "Enter the full path to the host folder:")" 10 70 "/mnt/" 3>&1 1>&2 2>&3)
|
--inputbox "$(translate "Enter the full path to the host folder:")" 10 70 "/mnt/" 3>&1 1>&2 2>&3)
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user