From ff98eae2a0cc3ace67e30e3e41908d279a7c13cb Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Sun, 4 Jun 2023 15:20:27 +0000 Subject: [PATCH] unix: remove absolute path of pwd from mkall.sh The pwd command does not always reside under /bin for all Linux distributions. As a $PATH is otherwise always assumed, here too. Change-Id: I8a9b65fedc0bdd6b963f30e69d5c98b1550326cd GitHub-Last-Rev: ff9227dbe6029506a932d033feea2059c15b4fec GitHub-Pull-Request: golang/sys#161 Reviewed-on: https://go-review.googlesource.com/c/sys/+/500656 Run-TryBot: Ian Lance Taylor Auto-Submit: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot --- unix/mkall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/mkall.sh b/unix/mkall.sh index 8e3947c36..e6f31d374 100755 --- a/unix/mkall.sh +++ b/unix/mkall.sh @@ -50,7 +50,7 @@ if [[ "$GOOS" = "linux" ]]; then # Use the Docker-based build system # Files generated through docker (use $cmd so you can Ctl-C the build or run) $cmd docker build --tag generate:$GOOS $GOOS - $cmd docker run --interactive --tty --volume $(cd -- "$(dirname -- "$0")/.." && /bin/pwd):/build generate:$GOOS + $cmd docker run --interactive --tty --volume $(cd -- "$(dirname -- "$0")/.." && pwd):/build generate:$GOOS exit fi