make ~/.authcode work correctly

fixes #60

the issue was that the check for './.authcode' overwrote the results of any successful check to '~/.authcode'
This commit is contained in:
Zachary King 2018-06-19 20:24:16 -04:00
parent 2f8bb35b68
commit a8e52c40a2

View File

@ -58,6 +58,8 @@ for dir in $authcodeDirs; do
if [ ! -f "$codeFile" -o ! -s "$codeFile" ]; then
codeFile=""
echo "INFO: Sorry, missing or empty \"$codeFile\" found, skipping.";
else
break
fi;
done;