From: Peter Palfrader Date: Sun, 18 Jan 2009 13:12:47 +0000 (+0000) Subject: Add base64-decode as an alias or shell function. it was a proper binary in sarge X-Git-Tag: tor-0.2.1.11-alpha~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d81208dbe3042edbddcd82886a248c77bf5c684f;p=thirdparty%2Ftor.git Add base64-decode as an alias or shell function. it was a proper binary in sarge svn:r18168 --- diff --git a/contrib/directory-archive/fetch-all-functions b/contrib/directory-archive/fetch-all-functions index 6d5a0e469d..72cc1caeaa 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