mirror of
https://git.sakamoto.pl/laudom/http.sh.git
synced 2025-09-17 07:23:45 +02:00
17 lines
225 B
Bash
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
|
|
}
|