http.sh/tests/00-prepare.sh
2024-08-04 21:37:51 +02:00

17 lines
225 B
Bash

#!/bin/bash
prepare() {
[[ ! -d app ]] && ./http.sh init
./http.sh >/dev/null &
}
tst() {
for i in {1..10}; do
if [[ "$(ss -tulnap | grep LISTEN | grep 1337)" ]]; then
return 0
fi
sleep 0.5
done
return 255
}