Skip to content

Commit

Permalink
tree: fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <[email protected]>
  • Loading branch information
AuxXxilium committed Jun 24, 2024
1 parent b8e6648 commit 25500df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions files/initrd/opt/arc/arc-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion files/initrd/opt/arc/arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ;;
Expand Down

0 comments on commit 25500df

Please sign in to comment.