From 2d525833590ed358725ba7bd912ea57f8a4ae808 Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Wed, 20 Jul 2022 10:42:10 -0700 Subject: [PATCH] cmd: use better PATH in Fly build.sh scripts Does not depend on the working directory being the same as the script Followup to https://github.com/tailscale/corp/pull/6153#discussion_r925880552 Change-Id: Id1c849e1eb7578960aada033115e9a53b0f8ae1d --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4cd66fb..d68ea2a 100755 --- a/build.sh +++ b/build.sh @@ -3,7 +3,7 @@ set -e set -x -export PATH="$PWD/../../tool":$PATH +export PATH="$(dirname "$0")/../../tool":$PATH go run github.com/tailscale/mkctr \ --target="flyio" \