Browse Source

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>
changes/96/643496/2
Saul Wold 2 months ago
parent
commit
adfce3ef13
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      centos-mirror-tools/make_stx_mirror_yum_conf.sh

+ 1
- 1
centos-mirror-tools/make_stx_mirror_yum_conf.sh View File

@@ -148,7 +148,7 @@ if grep -q '^reposdir=' $CENGN_YUM_CONF; then
148 148
     # reposdir= already exists, modify it
149 149
     if [ $RETAIN_REPODIR -eq 1 ]; then
150 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 152
     else
153 153
         # replace with CENGN_REPOS_DIR
154 154
         sed "s#^reposdir=.*\$#reposdir=$CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF

Loading…
Cancel
Save