diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-03-06 16:43:41 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-03-06 19:34:57 +0000 |
commit | f42549fdefb05243cb6e9a46e88aa6185291efde (patch) | |
tree | 6b710e4e2a75d8ec0332bde994efe4bc0aa2d2d5 /yarns/morph.shell-lib | |
parent | 9b443cd9b4819647dbf4b65e96099fae0b3d05cc (diff) | |
download | morph-f42549fdefb05243cb6e9a46e88aa6185291efde.tar.gz |
Convert colons to slashes for chunk name
Diffstat (limited to 'yarns/morph.shell-lib')
-rw-r--r-- | yarns/morph.shell-lib | 9 |
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 +} |