1
0
Fork 0
mirror of https://github.com/Jonny007-MKD/OTR-SaneRename synced 2024-05-02 20:54:04 +02:00

"Search" saneRenamix.sh

This commit is contained in:
Jonny007-MKD 2015-03-12 22:33:07 +01:00
parent 9c535108ab
commit a00ba45b48

View file

@ -8,11 +8,17 @@ files=(
["Bibi_Blocksberg_15.03.07_08-30_zdf_30_TVOON_DE.mpg.avi"]="Bibi.Blocksberg..S01E06..Bibi.im.Dschungel.avi" # Remove 3 words from the beginning
);
if [ -f test.sh ]; then
sr="../saneRenamix.sh"
else
sr="./saneRenamix.sh"
fi
i=0
for file in "${!files[@]}"; do
echo -e "\033[37m${file}";
result="$(./saneRenamix.sh $srArgs -s -f "$file")";
result="$($sr $srArgs -s -f "$file")";
if [ "$result" != "${files["$file"]}" ]; then
echo -e "\033[31m$file -> $result";
echo "'$result' != '${files[$file]}'";