Skip to content
Permalink
a6b0d41fcc
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 26 lines (20 sloc) 700 Bytes
#!/bin/fish
if not set -q SCRIPT_DIR
echo "ERROR in (status -m): \$SCRIPT_DIR is undefined!"
exit 1
end
set BASE_DIR "$SCRIPT_DIR/.."
#######################################
# actual script
#######################################
set RUNTIME_DIR "runtime_data"
###################################################
# export all these variables, so
# they can be referenced in the docker-compose.yaml
###################################################
# convert bash syntax to fish syntax:
set commands (cat ./scripts/config/env.conf | grep -E --invert-match '^#|^[[:space:]]*$' | sed 's/^\(.*\)=\(.*\)/set -x \1 \2/' | sed 's/\$(/(/g')
for cmd in $commands
echo "cmd: $cmd"
eval "$cmd"
end