From 15fa728a642e95a936aaa16317fc8282a3251f0c Mon Sep 17 00:00:00 2001 From: Wouter de Geus Date: Tue, 13 Mar 2018 14:09:34 +0100 Subject: [PATCH] Fix for https://github.com/Droplr/aws-env/issues/13 --- aws-env.go | 1 + 1 file changed, 1 insertion(+) diff --git a/aws-env.go b/aws-env.go index 8f46356..29c8347 100644 --- a/aws-env.go +++ b/aws-env.go @@ -57,6 +57,7 @@ func PrintExportParameter(path string, parameter *ssm.Parameter) { env := strings.Trim(name[len(path):], "/") value = strings.Replace(value, "\n", "\\n", -1) + value = strings.Replace(value, "'", "\\'", -1) fmt.Printf("export %s=$'%s'\n", env, value) }