client: lib_gen: ignore comments in env file
This commit is contained in:
@@ -207,8 +207,11 @@ function lib_gen::__read_env()
|
|||||||
|
|
||||||
# Set, if env file format (docker / bash)
|
# Set, if env file format (docker / bash)
|
||||||
while read _line; do
|
while read _line; do
|
||||||
export "${_line?}" # SC2163
|
# Ignore comments, export line
|
||||||
lib_utils::print_debug "$_line"
|
if [[ ! "$_line" =~ ^# ]]; then
|
||||||
|
export "${_line?}" # SC2163
|
||||||
|
lib_utils::print_debug "$_line"
|
||||||
|
fi
|
||||||
done <"$1"
|
done <"$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user