From d81208dbe3042edbddcd82886a248c77bf5c684f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 18 Jan 2009 13:12:47 +0000 Subject: [PATCH] Add base64-decode as an alias or shell function. it was a proper binary in sarge svn:r18168 --- contrib/directory-archive/fetch-all-functions | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.11.4.GIT