This commit is contained in:
John 2025-04-27 14:56:11 +12:00
parent a517940310
commit c67fc809b9

View File

@ -27,7 +27,7 @@ CURRENT_EXIT_CODE=0
load_dotenv(){ load_dotenv(){
local file_path=$1 local file_path=$1
if [ -f "${file_path}" ]; then if [ -f "${file_path}" ]; then
source <("${file_path}" | sed -e '/^#/d;/^\s*$/d' -e "s/'/'\\\''/g" -e "s/=\(.*\)/='\1'/g") source "${file_path}"
fi fi
} }