diff --git a/AAXtoMP3 b/AAXtoMP3 index c743d07..6dcb82b 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -5,6 +5,7 @@ set -o errexit -o noclobber -o nounset -o pipefail codec=libmp3lame extension=mp3 mode=chaptered +authcodeFile="${HOME}/.authcode"; GREP=$(grep --version | grep -q GNU && echo "grep" || echo "ggrep") if ! [[ $(type -P "$GREP") ]]; then @@ -47,11 +48,11 @@ then shift fi -if [ ! -f .authcode ]; then +if [ ! -f "$authcodeFile" ]; then auth_code=$1 shift else - auth_code=`head -1 .authcode` + auth_code=`head -1 "$authcodeFile"` fi debug() {