Files
git.taskfile.build/bin/load-env
T

7 lines
218 B
Bash
Executable File

#!/bin/bash
function load-env() {
TASK_CONFIG_DIR=${TASK_CONFIG_DIR:="$HOME/.config/taskfile.build"}
ENV_FILEPATH="$TASK_CONFIG_DIR/.env.$1"
echo "Source env file $ENV_FILEPATH"
source "$ENV_FILEPATH"
}