summaryrefslogtreecommitdiff
path: root/yarns/morph.shell-lib
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-06 16:43:41 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-06 19:34:57 +0000
commitf42549fdefb05243cb6e9a46e88aa6185291efde (patch)
tree6b710e4e2a75d8ec0332bde994efe4bc0aa2d2d5 /yarns/morph.shell-lib
parent9b443cd9b4819647dbf4b65e96099fae0b3d05cc (diff)
downloadmorph-f42549fdefb05243cb6e9a46e88aa6185291efde.tar.gz
Convert colons to slashes for chunk name
Diffstat (limited to 'yarns/morph.shell-lib')
-rw-r--r--yarns/morph.shell-lib9
1 files changed, 9 insertions, 0 deletions
diff --git a/yarns/morph.shell-lib b/yarns/morph.shell-lib
index 4ce8c2f8..05c11bcc 100644
--- a/yarns/morph.shell-lib
+++ b/yarns/morph.shell-lib
@@ -174,3 +174,12 @@ then
email = tomjon@codethink.co.uk
EOF
fi
+
+
+# Change colons to slashes. This is used when converting an aliases
+# repository URL (e.g., test:morphs) into a directory path.
+
+slashify_colons()
+{
+ echo "$1" | sed s,:,/,g
+}