From 8d2135c8c372841b0a56c1781bc114e07c5fdec2 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 03 Oct 2012 20:24:36 -0400 Subject: Prevent duplicates in ${_OB_BINARY_PARAMETERS}. --- 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")" -- cgit v0.9.1