devilbox/.tests/scripts/env-reset.sh

19 lines
516 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
set -u
set -o pipefail
SCRIPT_PATH="$( cd "$(dirname "$0")" && pwd -P )"
DVLBOX_PATH="$( cd "${SCRIPT_PATH}/../.." && pwd -P )"
# shellcheck disable=SC1090
. "${SCRIPT_PATH}/.lib.sh"
# -------------------------------------------------------------------------------------------------
# ENTRYPOINT
# -------------------------------------------------------------------------------------------------
run "rm -f ${DVLBOX_PATH}/.env"
run "cp ${DVLBOX_PATH}/env-example ${DVLBOX_PATH}/.env"