Skip to content

Commit 35cd1b9

Browse files
authored
filter out comments in deploy helper env vars (#35847)
Turns out a `.sh` file isn't actually a shell script :( Release Notes: - N/A
1 parent bd402fd commit 35cd1b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

script/lib/deploy-helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function export_vars_for_environment {
55
echo "Invalid environment name '${environment}'" >&2
66
exit 1
77
fi
8-
export $(cat $env_file)
8+
export $(grep -v '^#' $env_file | grep -v '^[[:space:]]*$')
99
}
1010

1111
function target_zed_kube_cluster {

0 commit comments

Comments
 (0)