summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/control.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/control.sh b/lib/control.sh
index 15faf45..53a3ea8 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -237,10 +237,7 @@ ob_set_substvar()
};
')"
- # Escape single quotes in value.
- value="$(printf '%s\n' "${value}" | sed "s/'/'\\\\''/g")"
-
- eval "_OB_SUBSTVAR_${name}='${value}'"
+ eval "_OB_SUBSTVAR_${name}=\"\${value}\""
return 0
}