From 4891a87d1180cb03ce433ec0df23b4165daddcbb Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sun, 6 Nov 2016 18:19:48 +0300 Subject: [PATCH] pass client id as id variable for shell commands Mentioned in #36. --- app.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.go b/app.go index c45ced6..c80f872 100644 --- a/app.go +++ b/app.go @@ -6,6 +6,7 @@ import ( "net" "os" "os/exec" + "strconv" "strings" ) @@ -116,6 +117,8 @@ func (app *App) exportVars() { } else { os.Setenv("fx", envFiles) } + + os.Setenv("id", strconv.Itoa(gClientId)) } // This function is used to run a command in shell. Following modes are used: