diff --git a/op/geth-entrypoint b/op/geth-entrypoint index 092809ab..4698c86d 100755 --- a/op/geth-entrypoint +++ b/op/geth-entrypoint @@ -24,7 +24,7 @@ else echo "$GETH_CHAINDATA_DIR exists." fi -if [ -n "$OP_NODE_L2_ENGINE_AUTH_RAW" ]; then +if [ -v my_var ] && [ -n "$my_var" ]; then echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH" fi