Commit 1054826a authored by Steven Allen's avatar Steven Allen

switch base64 decoder based on OS

Less magical.

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
parent faae63fc
...@@ -111,11 +111,11 @@ test_seq() { ...@@ -111,11 +111,11 @@ test_seq() {
} }
b64decode() { b64decode() {
for flag in "-D" "-d"; do case `uname` in
if base64 "$flag" 2>/dev/null; then Linux|FreeBSD) base64 -d ;;
return Darwin) base64 -D ;;
fi *)
done echo "no compatible base64 command found" >&2
echo "no compatible base64 command found" >&2 return 1
return 1 esac
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment