From b3ff77c4bdd248926b851ba364e139383d6a44c4 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 16 Nov 2011 21:52:57 +0100 Subject: [PATCH] Undertaker calls undertaker-$scheme #69 --- src/undertaker | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/undertaker b/src/undertaker index 790d38b..655caad 100755 --- 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 }