浏览代码

Add base64-decode as an alias or shell function. it was a proper binary in sarge

svn:r18168
Peter Palfrader 15 年之前
父节点
当前提交
d81208dbe3
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      contrib/directory-archive/fetch-all-functions

+ 8 - 0
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