mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-01-22 08:49:48 +01:00
"Search" saneRenamix.sh
This commit is contained in:
parent
9c535108ab
commit
a00ba45b48
1 changed files with 7 additions and 1 deletions
|
@ -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
|
["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
|
i=0
|
||||||
for file in "${!files[@]}"; do
|
for file in "${!files[@]}"; do
|
||||||
echo -e "\033[37m${file}";
|
echo -e "\033[37m${file}";
|
||||||
result="$(./saneRenamix.sh $srArgs -s -f "$file")";
|
result="$($sr $srArgs -s -f "$file")";
|
||||||
if [ "$result" != "${files["$file"]}" ]; then
|
if [ "$result" != "${files["$file"]}" ]; then
|
||||||
echo -e "\033[31m$file -> $result";
|
echo -e "\033[31m$file -> $result";
|
||||||
echo "'$result' != '${files[$file]}'";
|
echo "'$result' != '${files[$file]}'";
|
||||||
|
|
Loading…
Reference in a new issue