Skip to content

Commit

Permalink
fix: shell check error in mailpit
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Dec 10, 2023
1 parent 8429584 commit 0f39795
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/mailpit/.test.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/bin/sh
#!/usr/bin/env bash
set -ex

devenv up &
DEVENV_PID=$!
trap "pkill -P $DEVENV_PID" EXIT
export DEVENV_PID

function stop() {
pkill -P "$DEVENV_PID"
}

trap stop EXIT

timeout 20 bash -c 'until echo > /dev/tcp/localhost/1025; do sleep 0.5; done'

Expand Down

0 comments on commit 0f39795

Please sign in to comment.