aboutsummaryrefslogtreecommitdiff
path: root/contrib/directory-archive
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2009-01-18 13:12:47 +0000
committerPeter Palfrader <peter@palfrader.org>2009-01-18 13:12:47 +0000
commitd81208dbe3042edbddcd82886a248c77bf5c684f (patch)
tree0060b7f00409e48393fa662fc85dcedd23a218cb /contrib/directory-archive
parent9f6703ea3afe66512f1c8791a1a3c9d3f54c293d (diff)
downloadtor-d81208dbe3042edbddcd82886a248c77bf5c684f.tar
tor-d81208dbe3042edbddcd82886a248c77bf5c684f.tar.gz
Add base64-decode as an alias or shell function. it was a proper binary in sarge
svn:r18168
Diffstat (limited to 'contrib/directory-archive')
-rw-r--r--contrib/directory-archive/fetch-all-functions8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/directory-archive/fetch-all-functions b/contrib/directory-archive/fetch-all-functions
index 6d5a0e469..72cc1caea 100644
--- a/contrib/directory-archive/fetch-all-functions
+++ b/contrib/directory-archive/fetch-all-functions
@@ -70,3 +70,11 @@ fetch_digest() {
# echo "$objecttype $digest" >> failed
#fi
}
+
+if [ -x /usr/bin/base64 ] ; then
+ alias base64-decode='/usr/bin/base64 -d'
+else
+ base64-decode() {
+ perl -MMIME::Base64 -e 'print decode_base64(<>)'
+ }
+fi