tv_rename/test.sh

12 lines
257 B
Bash
Raw Normal View History

2018-09-23 08:53:58 +00:00
#!/bin/bash
cd test
for f in {01..10} ; do mkdir "Season $f" && for g in {01..30} ; do touch "Season $f/S${f}E$g.mkv" ; done ; done
echo 1 | ../tv_rename -s simpsons -c -t
ls Season* > names
if [ -z "$(diff names compare)" ] ; then
exit 0
else
exit 1
fi