Browse Source

Merge "make_stx_mirror_yum_conf: Fix sed statement"

changes/52/643652/2
Zuul 2 months ago
parent
commit
46bbf79317
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