diff --git a/bin/zk b/bin/zk index d0840cb8d500..e6dd1567b38f 100755 --- a/bin/zk +++ b/bin/zk @@ -1,9 +1,9 @@ #!/usr/bin/env bash -if [ -z "$1" ]; then - cd $ZKSYNC_HOME - yarn && yarn zk build -else +cd $ZKSYNC_HOME +yarn && yarn zk build + +if [ -n "$1" ]; then # can't start this with yarn since it has quirks with `--` as an argument node -- $ZKSYNC_HOME/infrastructure/zk/build/index.js "$@" fi