12 lines
277 B
Bash
Executable File
12 lines
277 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
repo_root="$(cd "$script_dir/.." && pwd)"
|
|
|
|
if [[ -x "$repo_root/dist/homesick-go" ]]; then
|
|
exec "$repo_root/dist/homesick-go" "$@"
|
|
fi
|
|
|
|
exec go run "$repo_root/cmd/homesick" "$@"
|