Add spacing

This commit is contained in:
decentral1se
2021-05-06 13:00:04 +02:00
parent fc9879c6ff
commit 930d9da516

View File

@ -11,12 +11,15 @@ file_env() {
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"
}