add sleep

This commit is contained in:
Tobias Powalowski 2023-01-12 15:22:10 +01:00
parent 34c5e981dc
commit 09fec05cc9

View file

@ -12,6 +12,7 @@ _autoprepare() {
_set_guid _set_guid
: >/tmp/.device-names : >/tmp/.device-names
_dialog --infobox "Scanning blockdevices ... This may need some time." 3 60 _dialog --infobox "Scanning blockdevices ... This may need some time." 3 60
sleep 3
_DISKS=$(_blockdevices) _DISKS=$(_blockdevices)
if [[ "$(echo "${_DISKS}" | wc -w)" -gt 1 ]]; then if [[ "$(echo "${_DISKS}" | wc -w)" -gt 1 ]]; then
_dialog --cr-wrap --msgbox "Available Disks:\n\n$(_getavaildisks)\n" 0 0 _dialog --cr-wrap --msgbox "Available Disks:\n\n$(_getavaildisks)\n" 0 0