From e48f4cf67a63198e619a59fcfbe48895ee1c0029 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Sat, 7 Feb 2026 15:15:36 +0200 Subject: [PATCH] fixed function names in it/mm --- it.sh | 4 ++-- mm.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/it.sh b/it.sh index fe70750..4a41d41 100755 --- a/it.sh +++ b/it.sh @@ -5,7 +5,7 @@ # Usage: it.sh w|r image-file # Created by Luxferre in 2026, released into public domain -get-removables() { +get_removables() { for ddir in /sys/block/*; do if grep -q 1 ${ddir}/removable; then dbase="$(basename $ddir)" @@ -27,7 +27,7 @@ if [ -z "$2" ]; then echo "No target file specified!" exit 1 fi -TARGET_DRIVE="/dev/$(get-removables | fzf --prompt "Select the drive: " | cut -f 1)" +TARGET_DRIVE="/dev/$(get_removables | fzf --prompt "Select the drive: " | cut -f 1)" RUN_COMMAND="" if [ "$1" = "w" ]; then diff --git a/mm.sh b/mm.sh index 7a142cd..ccc9402 100755 --- a/mm.sh +++ b/mm.sh @@ -5,7 +5,7 @@ # Usage: mm.sh (dir-to-mount-override) # Created by Luxferre in 2026, released into public domain -get-partitions() { +get_partitions() { for ddir in /sys/block/*; do if grep -q 1 ${ddir}/removable; then dbase="$(basename $ddir)" @@ -25,7 +25,7 @@ MOUNT_DIR="$1" [ -z "$MOUNT_ROOT" ] && MOUNT_ROOT="/mnt" [ -z "$SUDO" ] && SUDO="sudo" MOUNT_OPTS="user,rw,noatime,uid=$(id -u),gid=$(id -g)" -PART_LINE="$(get-partitions | fzf --prompt "Select the partition: ")" +PART_LINE="$(get_partitions | fzf --prompt "Select the partition: ")" [ -z "$PART_LINE" ] && echo "No partition selected, quitting!" && exit 1 TARGET_PART="$(echo "$PART_LINE" | cut -f 1)" IS_MOUNTED="$(echo "$PART_LINE" | cut -f 2)"