#!/usr/bin/env zsh source .env if grep -q "${EXTERNAL_STORAGE_MOUNT_PATH}"; then echo "Already mounted." exit fi echo "${EXTERNAL_STORAGE_MOUNT_PARTITION} ${EXTERNAL_STORAGE_MOUNT_PATH} ${EXTERNAL_STORAGE_MOUNT_FS_TYPE} auto,nofail,rw,user 0 0" >> "/etc/fstab" mkdir -p "${EXTERNAL_STORAGE_MOUNT_PATH}" mount -v "${EXTERNAL_STORAGE_MOUNT_PATH}"