We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c733d61 commit 98e3a66Copy full SHA for 98e3a66
1 file changed
run.sh
@@ -1,6 +1,9 @@
1
#!/usr/bin/env bash
2
set -euo pipefail
3
4
+script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+cd "${script_dir}"
6
+
7
port=5173
8
pids="$(lsof -ti "tcp:${port}" 2>/dev/null || true)"
9
if [[ -n "${pids}" ]]; then
0 commit comments