chore: remove unused files

This commit is contained in:
sripwoud
2024-09-11 16:33:52 +02:00
parent 0ec1da37fc
commit 945c56e9be
2 changed files with 0 additions and 28 deletions

View File

@@ -1 +0,0 @@
somesecret

View File

@@ -1,27 +0,0 @@
#!/usr/bin/env bash
# https://github.com/adrian-gheorghe/demo-docker-secrets-env-vars
set -e
file_env() {
local var="$1"
local fileVar="${var}_FILE"
local def="${2:-}"
if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then
echo >&2 "error: both $var and $fileVar are set (but are exclusive)"
exit 1
fi
local val="$def"
if [ "${!var:-}" ]; then
val="${!var}"
elif [ "${!fileVar:-}" ]; then
val="$(< "${!fileVar}")"
fi
export "$var"="$val"
unset "$fileVar"
}
file_env "SECRET"
exec "$@"