X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon;h=bb988f785e983ad5bcb90492f3390b618ce2c737;hb=df0e87db1b2f8a8c762d1a1f9ce3c7cd22845b46;hp=34c86cb42d9a67f452835d4773db519f78270f6c;hpb=8cf936aa9d62f6e8655904375a2d8217f559947a;p=monkeysphere.git diff --git a/src/common b/src/common index 34c86cb..bb988f7 100644 --- a/src/common +++ b/src/common @@ -77,6 +77,12 @@ gpg_unescape() { sed 's/\\x3a/:/g' } +# convert nasty chars into gpg-friendly form in pipeline +# FIXME: escape everything, not just colons! +gpg_escape() { + sed 's/:/\\x3a/g' +} + # remove all lines with specified string from specified file remove_line() { local file