File size: 381 Bytes
6a7089a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Run an existing PinchTab binary from the repo root.
set -euo pipefail

cd "$(dirname "$0")/.."

if [ ! -x ./pinchtab ]; then
  echo "pinchtab binary not found at ./pinchtab"
  echo "Build it first with: go build -o pinchtab ./cmd/pinchtab"
  exit 1
fi

# Default to 'server' if no arguments are provided
if [ $# -eq 0 ]; then
  set -- server
fi

exec ./pinchtab "$@"