Merge commit 'dkg/master'
[monkeysphere.git] / src / common
index 34c86cb42d9a67f452835d4773db519f78270f6c..bb988f785e983ad5bcb90492f3390b618ce2c737 100644 (file)
@@ -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