qmnt - Environment variables

This commit is contained in:
Logan G 2024-09-25 12:58:43 -06:00
parent dbecee4919
commit 05971b56cd
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -11,15 +11,15 @@ declare -A DEFAULT_MOUNT_OPTS=(
["OTHER"]="defaults"
)
MOUNT_OPTS=""
TARGET=""
MOUNT_OPTS="${MOUNT_OPTS:-""}"
TARGET="${TARGET:-""}"
[[ -z $SUDO_USER ]] || CURRENT_USER=$SUDO_USER; [[ -z $DOAS_USER ]] || CURRENT_USER=$DOAS_USER
MOUNT_FOLDER="/run/media/${CURRENT_USER}"
MOUNT_FOLDER="${MOUNT_FOLDER:-"/run/media/${CURRENT_USER}"}"
ALLOW_UUID="0"
ALLOW_LABEL="0"
LABEL_BY="LABEL"
ALLOW_UUID="${ALLOW_UUID:-0}"
ALLOW_LABEL="${ALLOW_LABEL:-0}"
LABEL_BY="${LABEL_BY:-LABEL}"
print_help () {
cat /dev/stdin << EOF