summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-11-21 15:41:26 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-21 17:13:34 +0100
commit93e933278af4ce929a0bbcb35e1fdacdd6b899c1 (patch)
tree55e13d036e92c6d28b7d5cf4930a38ef7f5233c0 /utils
parentac5cce69cc9ae0d5a6c202a29261fd292dbfe892 (diff)
[fix] filtron.sh & morty.sh: quote "$GO_ENV"
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/filtron.sh3
-rwxr-xr-xutils/morty.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/utils/filtron.sh b/utils/filtron.sh
index 8ad32a31..2536214e 100755
--- a/utils/filtron.sh
+++ b/utils/filtron.sh
@@ -337,7 +337,8 @@ EOF
echo "export SERVICE_HOME=$SERVICE_HOME"
tee_stderr <<EOF | sudo -i -u "$SERVICE_USER"
-grep -qFs -- 'source $GO_ENV' ~/.profile || echo 'source $GO_ENV' >> ~/.profile
+touch "$GO_ENV"
+grep -qFs -- 'source "$GO_ENV"' ~/.profile || echo 'source "$GO_ENV"' >> ~/.profile
EOF
}
diff --git a/utils/morty.sh b/utils/morty.sh
index c1f2bc96..25263a3d 100755
--- a/utils/morty.sh
+++ b/utils/morty.sh
@@ -337,7 +337,8 @@ EOF
echo "export SERVICE_HOME=$SERVICE_HOME"
tee_stderr <<EOF | sudo -i -u "$SERVICE_USER"
-grep -qFs -- 'source $GO_ENV' ~/.profile || echo 'source $GO_ENV' >> ~/.profile
+touch $GO_ENV
+grep -qFs -- 'source "$GO_ENV"' ~/.profile || echo 'source "$GO_ENV"' >> ~/.profile
EOF
}