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

View File

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