Tidy
This commit is contained in:
@ -4,6 +4,9 @@
|
||||
# JDE
|
||||
# 2025-04-25
|
||||
|
||||
# This file is not required if you write your own template.
|
||||
|
||||
|
||||
# Print error message and exit with code 1
|
||||
# Usage: die "error message"
|
||||
die() {
|
||||
@ -19,12 +22,12 @@ load_env() {
|
||||
local env_file
|
||||
|
||||
# first load basic.env for the template defaults
|
||||
if [ -f "$script_dir/basic.env" ]; then
|
||||
if [ -f "$script_dir/_basic.env" ]; then
|
||||
set -a
|
||||
source "$script_dir/basic.env"
|
||||
source "$script_dir/_basic.env"
|
||||
set +a
|
||||
else
|
||||
echo "Warning: basic.env file not found at $script_dir/basic.env. Broken template?"
|
||||
echo "Warning: basic.env file not found at $script_dir/_basic.env. Broken template?"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user