fix error handling in aa-decode

Acked-By: Steve Beattie <sbeattie@ubuntu.com>

Looks-Good-By: ;-)  Seth Arnold <seth.arnold@gmail.com>
This commit is contained in:
Christian Boltz 2012-09-17 23:55:28 +02:00
parent 5a026afd9f
commit 0742f72f4f

View file

@ -50,7 +50,7 @@ if [ -n "$1" ]; then
e=`echo "$1" | tr -s '[:lower:]' '[:upper:]'`
if ! echo "$e" | egrep -q "^[0-9A-F]+$" ; then
echo "String should only contain hex characters (0-9, a-f, A-F)"
return
exit 1
fi
d=`decode $e`