X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fcommon;h=24decae5dec4ebc28408934c734b0015c351136d;hb=b0ea15c8e359a908583e08da0663d69e353c77dc;hp=17955a7a1723e0d861563fcbc79dba73885a981d;hpb=2f89210eb11ccb0a7289f89a545697029b2bb9d7;p=monkeysphere.git diff --git a/src/common b/src/common index 17955a7..24decae 100644 --- a/src/common +++ b/src/common @@ -76,6 +76,13 @@ unescape() { echo "$1" | sed 's/\\x3a/:/g' } +# convert nasty chars into gpg-friendly form +# FIXME: escape everything, not just colons! +escape() { + echo "$1" | sed 's/:/\\x3a/g' +} + + # remove all lines with specified string from specified file remove_line() { local file