diff --git a/defaults/beets.sh b/defaults/beets.sh index 6157a86..3981b16 100644 --- a/defaults/beets.sh +++ b/defaults/beets.sh @@ -8,7 +8,7 @@ # $1 - Fullpath of directory to be processed. eg./mnt/user/downloads/some.artist_some.album # $7 - Status of post processing. 0 = OK, 1 = failed verification, 2 = failed unpack, 3 = 1+2 -if [ ! -z $7 ] && [ $7 -gt 0 ]; then +if [ ! -z "$7" ] && [ "$7" -gt 0 ]; then echo "post-processing failed, bypassing script" exit 1 fi