summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/package.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/package.sh b/lib/package.sh
index f824e6c..99f7b76 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -366,10 +366,7 @@ _ob_set_source_parameter()
_OB_SOURCE_PARAMETERS="${_OB_SOURCE_PARAMETERS} ${name}"
- # Escape the value.
- value="$(echo "${value}" | sed "s/'/'\\\\''/g")"
-
- eval "_OB_SRCFIELD_${name}='${value}'"
+ eval "_OB_SRCFIELD_${name}=\"\${value}\""
return 0
}
@@ -405,10 +402,7 @@ _ob_set_binary_parameter()
_OB_BINARY_PARAMETERS="${_OB_BINARY_PARAMETERS} ${name}"
fi
- # Escape the value.
- value="$(echo "${value}" | sed "s/'/'\\\\''/g")"
-
- eval "_OB_BINFIELD_${package}_${name}='${value}'"
+ eval "_OB_BINFIELD_${package}_${name}=\"\${value}\""
return 0
}