mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
shorten sleep
This commit is contained in:
parent
e70ebc51d4
commit
ff8a6c3dd2
1 changed files with 3 additions and 3 deletions
|
@ -184,7 +184,7 @@ _check_btrfs_subvolume(){
|
||||||
[[ -n "${_DOMKFS}" && "${_FSTYPE}" == "btrfs" ]] && _DETECT_CREATE_FILESYSTEM=1
|
[[ -n "${_DOMKFS}" && "${_FSTYPE}" == "btrfs" ]] && _DETECT_CREATE_FILESYSTEM=1
|
||||||
if [[ -z "$(cat "${_ANSWER}")" ]]; then
|
if [[ -z "$(cat "${_ANSWER}")" ]]; then
|
||||||
_dialog --title " ERROR " --infobox "You have defined an empty name! Please enter another name." 3 70
|
_dialog --title " ERROR " --infobox "You have defined an empty name! Please enter another name." 3 70
|
||||||
sleep 5
|
sleep 3
|
||||||
_BTRFS_SUBVOLUME="NONE"
|
_BTRFS_SUBVOLUME="NONE"
|
||||||
fi
|
fi
|
||||||
if [[ -z "${_DETECT_CREATE_FILESYSTEM}" && -z "${_CREATE_MOUNTPOINTS}" ]]; then
|
if [[ -z "${_DETECT_CREATE_FILESYSTEM}" && -z "${_CREATE_MOUNTPOINTS}" ]]; then
|
||||||
|
@ -192,7 +192,7 @@ _check_btrfs_subvolume(){
|
||||||
for i in $(btrfs subvolume list "${_BTRFSMP}" | cut -d " " -f 9); do
|
for i in $(btrfs subvolume list "${_BTRFSMP}" | cut -d " " -f 9); do
|
||||||
if echo "${i}" | grep -q "${_BTRFS_SUBVOLUME}"; then
|
if echo "${i}" | grep -q "${_BTRFS_SUBVOLUME}"; then
|
||||||
_dialog --title " ERROR " --infobox "You have defined 2 identical SUBVOLUME names! Please enter another name." 3 70
|
_dialog --title " ERROR " --infobox "You have defined 2 identical SUBVOLUME names! Please enter another name." 3 70
|
||||||
sleep 5
|
sleep 3
|
||||||
_BTRFS_SUBVOLUME="NONE"
|
_BTRFS_SUBVOLUME="NONE"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -202,7 +202,7 @@ _check_btrfs_subvolume(){
|
||||||
_subvolumes_in_use
|
_subvolumes_in_use
|
||||||
if echo "${_SUBVOLUME_IN_USE}" | grep -Eq "${_BTRFS_SUBVOLUME}"; then
|
if echo "${_SUBVOLUME_IN_USE}" | grep -Eq "${_BTRFS_SUBVOLUME}"; then
|
||||||
_dialog --title " ERROR " --infobox "You have defined 2 identical SUBVOLUME names! Please enter another name." 3 70
|
_dialog --title " ERROR " --infobox "You have defined 2 identical SUBVOLUME names! Please enter another name." 3 70
|
||||||
sleep 5
|
sleep 3
|
||||||
_BTRFS_SUBVOLUME="NONE"
|
_BTRFS_SUBVOLUME="NONE"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue