#!/usr/bin/env bash

if [ "$SPACEX_WORKER" == "true" ]; then
  node ./jobs/worker.js
else
  node ./server.js
fi

#!/usr/bin/env sh

if [ "$SPACEX_WORKER" = "true" ]; then
  node ./jobs/worker.js
else
  node ./server.js
fi

Convert from bash to shell script
Convert from bash to shell script