fixed function names in it/mm
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user