Skip to content

Commit 0dd88db

Browse files
committed
Error in loading ./env file
1 parent 3979e3a commit 0dd88db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/setup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ if [ -f ${rootDirPath}/.env ]; then
323323
# Trim any surrounding whitespace
324324
key=$(echo $key | xargs)
325325
value=$(echo $value | xargs)
326-
export "$key=$value"
326+
if [ "$key" != "" ]; then
327+
# echo ".env: key=$key, value=$value"
328+
export "$key=$value"
329+
fi
327330
fi
328331
done < ${rootDirPath}/.env
329332
else

0 commit comments

Comments
 (0)