14 lines
362 B
Bash
14 lines
362 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
export GOTOOLCHAIN=local
|
|
cd "$(dirname "$0")/.."
|
|
if command -v go >/dev/null 2>&1; then
|
|
go env -w GOPROXY=https://goproxy.cn,direct
|
|
go env -w GOSUMDB=off
|
|
fi
|
|
if [ ! -x "./dist/juku_linux_amd64" ]; then
|
|
echo "找不到 Linux x64 程序,请先运行 ./scripts/build.sh。"
|
|
exit 1
|
|
fi
|
|
exec ./dist/juku_linux_amd64 "$@"
|