Files
2024-08-14 05:46:15 +00:00

11 lines
321 B
Bash
Executable File

#! bin/bash
# The ./env file is formatted for docker-compose
# This script outputs a conversion of that file with
# 'export' added to each line so it can be set into
# a Bash environment.
TEMPFILE=/tmp/envToEnvironment$$
sed -e 's/^\([A-Z]\)/export \1/' < ./env > "$TEMPFILE"
source "$TEMPFILE"
rm -f "$TEMPFILE"