2024-01-15 14:16:54 +00:00
|
|
|
#!/bin/bash
|
2024-01-15 17:16:00 +00:00
|
|
|
: "${ENTRYPOINT_ROOT:="/docker"}"
|
|
|
|
|
|
|
|
# shellcheck source=SCRIPTDIR/../helpers.sh
|
|
|
|
source "${ENTRYPOINT_ROOT}/helpers.sh"
|
2024-01-15 14:16:54 +00:00
|
|
|
|
|
|
|
entrypoint-set-script-name "$0"
|
|
|
|
|
|
|
|
# Validating dot-env files for any issues
|
|
|
|
for file in "${dot_env_files[@]}"; do
|
2024-01-26 20:14:40 +00:00
|
|
|
if ! file-exists "${file}"; then
|
2024-01-15 14:16:54 +00:00
|
|
|
log-warning "Could not source file [${file}]: does not exists"
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2024-01-26 20:14:40 +00:00
|
|
|
run-as-current-user dotenv-linter --skip=QuoteCharacter --skip=UnorderedKey "${file}"
|
2024-01-15 14:16:54 +00:00
|
|
|
done
|