pass client id as id variable for shell commands

Mentioned in #36.
This commit is contained in:
Gokcehan committed 2016-11-06 18:19:48 +03:00
1 parent ec4cb78535
commit 4891a87d11
1 file changed
+3
+3
View File
@@ -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: