forked from EvergreenCrypto/docker-finance
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)
|
||||
while read _line; do
|
||||
export "${_line?}" # SC2163
|
||||
lib_utils::print_debug "$_line"
|
||||
# Ignore comments, export line
|
||||
if [[ ! "$_line" =~ ^# ]]; then
|
||||
export "${_line?}" # SC2163
|
||||
lib_utils::print_debug "$_line"
|
||||
fi
|
||||
done <"$1"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user