Skip to content

Commit

Permalink
Check that env var DEVELOPER_MODE is set and 'true' before enabling d…
Browse files Browse the repository at this point in the history
…eveloper mode (stargate#674)

* Check that env var DEVELOPER_MODE is set and 'true' before enabling developer mode

* Check for true or 1 for DEVELOPER_MODE in starctl
  • Loading branch information
dougwettlaufer authored Feb 16, 2021
1 parent 89a1ba5 commit b59abcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starctl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ if [[ ${#STARGATE_ARGS[@]} -eq 0 ]]; then
STARGATE_ARGS+=("--proxy-port" "$PROXY_PORT")
fi

if [[ ! -z "$DEVELOPER_MODE" ]]; then
if [[ "$DEVELOPER_MODE" = true ]] || [[ "$DEVELOPER_MODE" = 1 ]]; then
STARGATE_ARGS+=("--developer-mode")
fi

Expand Down

0 comments on commit b59abcb

Please sign in to comment.