[geany/plugins.geany.org] 3b7f82: Use a comma as separator for the sed command

Enrico Tröger git-noreply at xxxxx
Wed Jul 22 19:45:29 UTC 2015


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Wed, 22 Jul 2015 19:45:29 UTC
Commit:      3b7f82fdb0aca47a13f1f33d12b93c3238a5fef8
             https://github.com/geany/plugins.geany.org/commit/3b7f82fdb0aca47a13f1f33d12b93c3238a5fef8

Log Message:
-----------
Use a comma as separator for the sed command

Since slash is part of the pattern, using a different separator makes
it more readable. All kudos go to Colomban :).


Modified Paths:
--------------
    gencontent.sh

Modified: gencontent.sh
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -221,7 +221,7 @@ function gen_html_from_readme()
     sed -i "s/  /\t/g" .README.html
     # remove hard-coded references to http://plugins.geany.org and make the links
     # protocol-relative to not break SSL
-    sed -i "s/http:\/\/plugins.geany.org\//\/\/plugins.geany.org\//g" .README.html
+    sed -i "s,http://plugins.geany.org/,//plugins.geany.org/,g" .README.html
     cp .README.html ${dir}${plugin}.html
     echo -e "\n\n" >> ${LOGFILE}
 }



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list