devilbox/.tests/scripts/env-reset.sh
2019-11-18 00:17:10 +01:00

19 lines
516 B
Bash
Executable File

#!/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"