tg.sh: change incorrect 'continue' into correct 'return'