diff options
-rw-r--r-- | contrib/directory-archive/fetch-all-functions | 8 |
1 files changed, 8 insertions, 0 deletions
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 |