tUndertaker calls undertaker-$scheme #69 - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit b3ff77c4bdd248926b851ba364e139383d6a44c4
DIR parent 97cd969c7b4573dbf6a40d0340b59d8aeb46d966
HTML 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(-)
---
DIR diff --git a/src/undertaker b/src/undertaker
t@@ -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
}