diff --git a/scripts/run-agent.sh b/scripts/run-agent.sh index c9ccb48..8694779 100755 --- a/scripts/run-agent.sh +++ b/scripts/run-agent.sh @@ -43,7 +43,7 @@ load_env() { if [[ -z "${!key+x}" ]]; then env_vars="$env_vars $key=$value" fi - done < "$env_file" + done < <(cat "$env_file"; echo "") if [[ -n "$env_vars" ]]; then eval "export $env_vars" fi diff --git a/scripts/run-tool.sh b/scripts/run-tool.sh index d70b292..26d3e83 100755 --- a/scripts/run-tool.sh +++ b/scripts/run-tool.sh @@ -40,7 +40,7 @@ load_env() { if [[ -z "${!key+x}" ]]; then env_vars="$env_vars $key=$value" fi - done < "$env_file" + done < <(cat "$env_file"; echo "") if [[ -n "$env_vars" ]]; then eval "export $env_vars" fi