commit b3ff77c4bdd248926b851ba364e139383d6a44c4 parent 97cd969c7b4573dbf6a40d0340b59d8aeb46d966 Author: boyska <piuttosto@logorroici.org> Date: Wed, 16 Nov 2011 21:52:57 +0100 Undertaker calls undertaker-$scheme #69 Diffstat:
M | src/undertaker | | | 9 | ++++++--- |
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/undertaker b/src/undertaker @@ -84,9 +84,12 @@ function undertaker_scheme() { ;; *) - #TODO: support undertaker-$scheme - error "url protocol not recognized: $baseurl" - return 64 + if ! which undertaker-$scheme &> /dev/null; then + error "url protocol not recognized: $scheme" + return 64 + fi + undertaker-$scheme ${(kv)opts} ${scheme}://$keypath + return $? ;; esac }