DORMANTno replies

[PATCH] cogito: export user env in tutorial-script

From: Gerrit Pape <hidden>
Date: 2016-06-15 22:42:31
Subsystem: documentation, the rest · Maintainers: Jonathan Corbet, Linus Torvalds

The GIT_* environment variables set in switch_user() must be exported to be
available to the programs run afterwards.

Signed-off-by: Gerrit Pape <redacted>

---

 Documentation/tutorial-script/script.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

f4d96a4ceda9b7ac7e2e29f4b017edf60360904c
diff --git a/Documentation/tutorial-script/script.sh b/Documentation/tutorial-script/script.sh
index b99e3c9..b0e49c8 100755
--- a/Documentation/tutorial-script/script.sh
+++ b/Documentation/tutorial-script/script.sh
@@ -52,10 +52,10 @@ switch_user () {
 		*) echo "I don't know you, $1"; exit 1;;
 	esac
 	HOME=$(pwd)
-	GIT_AUTHOR_NAME="$1"
-	GIT_AUTHOR_EMAIL="$1@example.com"
-	GIT_COMMITTER_NAME="$1"
-	GIT_COMMITTER_EMAIL="$1@example.com"
+	export GIT_AUTHOR_NAME="$1"
+	export GIT_AUTHOR_EMAIL="$1@example.com"
+	export GIT_COMMITTER_NAME="$1"
+	export GIT_COMMITTER_EMAIL="$1@example.com"
 }
 
 
-- 
1.3.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help