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() {
}
b64decode() {
for flag in "-D" "-d"; do
if base64 "$flag" 2>/dev/null; then
return
fi
done
echo "no compatible base64 command found" >&2
return 1
case `uname` in
Linux|FreeBSD) base64 -d ;;
Darwin) base64 -D ;;
*)
echo "no compatible base64 command found" >&2
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