Преглед изворни кода

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