From c67ca49b7d051b3a9d5d2abccf816cf7badd8bd5 Mon Sep 17 00:00:00 2001
From: Isabella Almeida <isabella@tecgraf.puc-rio.br>
Date: Mon, 11 Nov 2019 18:22:37 -0300
Subject: [PATCH] =?UTF-8?q?[SOMA-2553][SOMA-2624]=20-=20Escapando=20as=20v?=
 =?UTF-8?q?ari=C3=A1veis=20no=20shell=20para=20evitar=20a=20expans=C3=A3o?=
 =?UTF-8?q?=20do=20valor=20do=20token=20na=20linha=20de=20comando=20de=20t?=
 =?UTF-8?q?estes?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 request.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/request.sh b/request.sh
index b47d7ec..3f0f2ad 100755
--- a/request.sh
+++ b/request.sh
@@ -7,7 +7,7 @@ case "$1" in
 
 job)
    curl -v -H "Content-Type: application/json" -H 'Authorization: USER_TOKEN' -X POST -d '{
-      "cmd_string": "echo user token: $CSBASE_USER_TOKEN && sleep 10 && echo bye > /tmp/job_123.out ",
+      "cmd_string": "bash -c \"echo user token: \\$CSBASE_USER_TOKEN \" && sleep 10 && echo bye",
       "cmd_id": "job_123",
       "parameters": {
          "csbase_command_path": "/tmp",
-- 
GitLab