You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/05/02 13:54:00 UTC

[jira] [Commented] (STREAMPIPES-536) Escape asterisk in installer/upgrade_versions.sh

    [ https://issues.apache.org/jira/browse/STREAMPIPES-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17530744#comment-17530744 ] 

ASF subversion and git services commented on STREAMPIPES-536:
-------------------------------------------------------------

Commit 75735805c52018e599e806c291d4970d4919e8ee in incubator-streampipes's branch refs/heads/obermeier-patch-1 from Stefan Obermeier
[ https://gitbox.apache.org/repos/asf?p=incubator-streampipes.git;h=75735805c ]

[STREAMPIPES-536] Escape asterisk in sed command

> Escape asterisk in installer/upgrade_versions.sh
> ------------------------------------------------
>
>                 Key: STREAMPIPES-536
>                 URL: https://issues.apache.org/jira/browse/STREAMPIPES-536
>             Project: StreamPipes
>          Issue Type: Improvement
>          Components: Installer
>            Reporter: Stefan Obermeier
>            Priority: Minor
>             Fix For: 0.70.0
>
>
> Hi,
> I tried the installer/upgrade_versions.sh and get an exception when the README.md s are processed. "sed: -e expression #1, char XX: Invalid preceding regular expression".
> I used
>    sed (GNU sed) 4.8 on Windows
>    sed (GNU sed) 4.7 on Ubuntu 20.04.3 LTS.
>  
> If I escape the asterisk it works for me.
>   Old:  sed -i 's/**Current version:** .*/**Current version:** '$NEW_VERSION'/g' ./$opt/README.md
>  New:  sed -i 's/\*\*Current version:\*\* .*/\*\*Current version:\*\* '$NEW_VERSION'/g' ./$opt/README.md
>  
> Do you know if this is a geral solution or just for my environments?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)