cluster/docker/bash-lib/main.bash
2021-01-14 00:40:58 +01:00

21 lines
274 B
Bash

set -u +e
## Args
# - vars - a space separated list of variables
save_env() {
local vars="$1"
for var in $vars ; do
echo "$var=${!var}"
done
}
## Args
# - message - message to exit with
echo_exit() {
local msg="$1 Exiting..."
echo $msg
exit 1
}