qmnt - Environment variables
This commit is contained in:
parent
dbecee4919
commit
05971b56cd
1 changed files with 6 additions and 6 deletions
12
tools/qmnt
12
tools/qmnt
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue