Fix condition in docker-entrypoint.sh

This commit is contained in:
jieggii 2024-08-08 14:39:06 +03:00
parent 6609c98025
commit 2d5e9553c8

View File

@ -17,7 +17,7 @@ file_env() {
exit 1
else
if [ -n $file_path ]; then
if [ -n "$file_path" ] && [ "$file_path" != "" ]; then
if [ -f "$file_path" ]; then
file_content=$(cat "$file_path")
export "$var_name=$file_content"