summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2019-03-14 18:20:25 -0700
committerSaul Wold <sgw@linux.intel.com>2019-03-14 20:55:27 -0700
commitadfce3ef13de2d24d633d1f7408e4dae12e40866 (patch)
tree4d494ddf6b4acd2679facc09f07d1df4a9b67fa2
parent81139a047cdd9c23e3a4c607e950240e3ff6ea0f (diff)
make_stx_mirror_yum_conf: Fix sed statement
The appending to repodir was missing () around the LHS reference and give the following error: sed: -e expression #1, char 56: invalid reference \1 on `s' command's RHS Change-Id: Ib7f21a45a9debf42ae8d91be3e8288c7d0b97463 Signed-off-by: Saul Wold <sgw@linux.intel.com>
Notes
Notes (review): Code-Review+2: Don Penney <don.penney@windriver.com> Code-Review+2: Scott Little <scott.little@windriver.com> Workflow+1: Scott Little <scott.little@windriver.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 15 Mar 2019 19:23:09 +0000 Reviewed-on: https://review.openstack.org/643496 Project: openstack/stx-tools Branch: refs/heads/master
-rwxr-xr-xcentos-mirror-tools/make_stx_mirror_yum_conf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/centos-mirror-tools/make_stx_mirror_yum_conf.sh b/centos-mirror-tools/make_stx_mirror_yum_conf.sh
index 90f5d38..01f3000 100755
--- a/centos-mirror-tools/make_stx_mirror_yum_conf.sh
+++ b/centos-mirror-tools/make_stx_mirror_yum_conf.sh
@@ -148,7 +148,7 @@ if grep -q '^reposdir=' $CENGN_YUM_CONF; then
148 # reposdir= already exists, modify it 148 # reposdir= already exists, modify it
149 if [ $RETAIN_REPODIR -eq 1 ]; then 149 if [ $RETAIN_REPODIR -eq 1 ]; then
150 # Append CENGN_REPOS_DIR 150 # Append CENGN_REPOS_DIR
151 sed "s#^reposdir=.*\$#reposdir=\1 $CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF 151 sed "s#^reposdir=\(.*\)\$#reposdir=\1 $CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF
152 else 152 else
153 # replace with CENGN_REPOS_DIR 153 # replace with CENGN_REPOS_DIR
154 sed "s#^reposdir=.*\$#reposdir=$CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF 154 sed "s#^reposdir=.*\$#reposdir=$CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF