Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Update Ubuntu 14.04 image"
[releng/builder.git]
/
jjb
/
integration
/
common-functions.sh
diff --git
a/jjb/integration/common-functions.sh
b/jjb/integration/common-functions.sh
index 605cd8f0ac9ac8a49a8d2f16d6053681efd28c02..836100b774e7c1fa3f266b4b4daa86caabe3f866 100644
(file)
--- a/
jjb/integration/common-functions.sh
+++ b/
jjb/integration/common-functions.sh
@@
-115,3
+115,13
@@
function configure_karaf_log() {
echo "cat ${LOGCONF}"
cat ${LOGCONF}
} # function configure_karaf_log()
echo "cat ${LOGCONF}"
cat ${LOGCONF}
} # function configure_karaf_log()
+
+# convert commas in csv strings to spaces (ssv)
+function csv2ssv() {
+ local csv=$1
+ if [ -n "${csv}" ]; then
+ ssv=$(echo ${csv} | sed 's/,/ /g' | sed 's/\ \ */\ /g')
+ fi
+
+ echo "${ssv}"
+} # csv2ssv