Skip to content

Commit

Permalink
fix: Replace yes by true and add set -x (#1914)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoQuaresma committed May 31, 2022
1 parent dd55d45 commit 83edbee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/develop.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail
set -x

SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
PROJECT_ROOT=$(cd "$SCRIPT_DIR" && git rev-parse --show-toplevel)
Expand Down Expand Up @@ -28,6 +29,6 @@ export CODER_DEV_ADMIN_PASSWORD=password
# Just a minor sleep to ensure the first user was created to make the member.
sleep 2
# || yes to always exit code 0. If this fails, whelp.
go run cmd/coder/main.go users create --email=member@coder.com --username=member --password="${CODER_DEV_ADMIN_PASSWORD}" || yes
go run cmd/coder/main.go users create --email=member@coder.com --username=member --password="${CODER_DEV_ADMIN_PASSWORD}" || true
wait
)

0 comments on commit 83edbee

Please sign in to comment.