You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env sh
|
|
|
|
# this throws an error if any secrets are empty
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
for secret in /run/secrets/* ; do
|
|
if [ -s "$secret" ]; then
|
|
>&2 echo "ERROR: empty secret: $(basename $secret)"
|
|
exit 1
|
|
fi
|
|
done
|