Fixed environment variable setting

This commit is contained in:
Michele Cereda
2021-10-17 00:28:15 +02:00
parent be392b42cd
commit 5ed40301f3

View File

@@ -2,7 +2,7 @@
: ${DEVICE:?not set}
: ${LABEL:?not set}
: ${MOUNT_OPTIONS:-compress-force=zstd}
MOUNT_OPTIONS="${MOUNT_OPTIONS:-compress-force=zstd}"
[[ ${EUID} -eq 0 ]] || (echo "Please rerun this script with root privileges" && exit 1)
[[ -f "${DEVICE}" ]] || echo "${DEVICE} not found"