From 6fffa26c4c9d958e66cdbd712cefdf5bbd087f37 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 12 Mar 2019 13:03:33 -0400 Subject: _ob_set_*_parameter(): Don't expand escaped value early in eval --- (limited to 'lib') 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 } -- cgit v0.9.1