summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/package.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/package.sh b/lib/package.sh
index bd73b83..6b71304 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -379,7 +379,10 @@ _ob_set_binary_parameter()
;;
esac
- _OB_BINARY_PARAMETERS="${_OB_BINARY_PARAMETERS} ${_obsbp_name}"
+ if ! echo " ${_OB_BINARY_PARAMETERS} " | grep " ${_obsbp_name} " \
+ >/dev/null 2>&1; then
+ _OB_BINARY_PARAMETERS="${_OB_BINARY_PARAMETERS} ${_obsbp_name}"
+ fi
# Escape the value.
_obsbp_value="$(echo "${_obsbp_value}" | sed "s/'/'\\\\''/g")"