tree: fix typos

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-06-24 21:14:42 +02:00
parent b8e6648ea9
commit 25500dfbc5
2 changed files with 7 additions and 6 deletions

View File

@@ -1586,19 +1586,20 @@ function saveMenu() {
# let user format disks from inside arc
function formatDisks() {
rm -f "${TMP_PATH}/opts"
while read -r KNAME ID PKNAME; do
while read -r KNAME SIZE PKNAME; do
[ -z "${KNAME}" ] && continue
[[ "${KNAME}" = /dev/md* ]] && continue
[[ "${KNAME}" = "${LOADER_DISK}" || "${PKNAME}" = "${LOADER_DISK}" ]] && continue
[ -z "${ID}" ] && ID="Unknown"
echo "\"${KNAME}\" \"${ID}\" \"off\"" >>"${TMP_PATH}/opts"
done < <(lsblk -pno KNAME,ID,PKNAME)
[ -n "${PKNAME}" ] && PARTITION=" (Partition)" || PARTITION=" (Disk)"
[ -z "${SIZE}" ] && SIZE="Unknown"
echo "\"${KNAME}\" \"${SIZE}${PARTITION}\" \"off\"" >>"${TMP_PATH}/opts"
done < <(lsblk -pno KNAME,SIZE,PKNAME)
if [ ! -f "${TMP_PATH}/opts" ]; then
dialog --backtitle "$(backtitle)" --title "Format Disks" \
--msgbox "No disk found!" 0 0
return
fi
DIALOG --title "Format Disks" \
dialog --backtitle "$(backtitle)" --title "Format Disks" \
--checklist "Select Disks" 0 0 0 --file "${TMP_PATH}/opts" \
2>${TMP_PATH}/resp
[ $? -ne 0 ] && return

View File

@@ -1208,7 +1208,7 @@ else
L) greplogs; NEXT="L" ;;
T) forcessh; NEXT="T" ;;
C) cloneLoader; NEXT="C" ;;
F) formatdisks; NEXT="F" ;;
F) formatDisks; NEXT="F" ;;
G) package; NEXT="G" ;;
# Misc Settings
x) backupMenu; NEXT="x" ;;