From 87b57709acce05be2fab51e5ba4412427622ff7e Mon Sep 17 00:00:00 2001 From: Nicolas Mailhot Date: Dec 02 2018 16:01:58 +0000 Subject: untangle argument passing some more --- diff --git a/bin/go-rpm-integration b/bin/go-rpm-integration index ed87d10..e03d555 100755 --- a/bin/go-rpm-integration +++ b/bin/go-rpm-integration @@ -259,9 +259,11 @@ if [[ -z "${goipath}" ]] ; then exit 1 fi flags_d=( "${flags_d[@]##${goipath}/}" ) +flags_d=( "${flags_d[@]/#/${goipath}/}" ) flags_d=( "${flags_d[@]%/.}" ) dedupearray flags_d flags_t=( "${flags_t[@]##${goipath}/}" ) +flags_t=( "${flags_t[@]/#/${goipath}/}" ) flags_t=( "${flags_t[@]%/.}" ) dedupearray flags_t dedupearray flags_r @@ -269,7 +271,7 @@ dedupearray flags_e } expandflags() { -echo ${flags_d[@]/#/ -d ${goipath}/} ${flags_t[@]/#/ -t ${goipath}/} ${flags_r[@]/#/ -r } ${flags_e[@]/#/ -e } +echo ${flags_d[@]/#/ -d } ${flags_t[@]/#/ -t } ${flags_r[@]/#/ -r } ${flags_e[@]/#/ -e } } popmetadata() {