website: export V23_GOPATH
The shell scripts for setting up the tutorial environment runs the
shell snippet from setup.md twice (`mdrip --preambled 0`): once inside
the callee shell and one in a restricted inner shell. If the
V23_GOPATH does not exists then the second run fails. This fixes the
issue by exporting the V23_GOPATH.
Change-Id: Id3fa5e7641c3ad629772ef2415fa852823d08798
diff --git a/content/tutorials/setup.md b/content/tutorials/setup.md
index c8381e0..7cd729a 100644
--- a/content/tutorials/setup.md
+++ b/content/tutorials/setup.md
@@ -42,12 +42,10 @@
# code created as a result of doing the tutorials. To avoid trouble with
# accumulation, $GOPATH is intentionally omitted from the right hand side (any
# existing value is ignored).
-if [ -n "$V23_GOPATH" ]; then
- # Use the contributor's GOPATH rather than the release. See ../testing.md.
- export GOPATH=$V_TUT:${V23_GOPATH}
-else
- export GOPATH=$V_TUT:`${JIRI_ROOT}/devtools/bin/jiri go env GOPATH`
+if [ -z "$V23_GOPATH" ]; then
+ export V23_GOPATH=`${JIRI_ROOT}/devtools/bin/jiri go env GOPATH`
fi
+export GOPATH=$V_TUT:${V23_GOPATH}
# HISTCONTROL set as follows excludes long file creation commands used in
# tutorials from your shell history.