I think I threw this code in Hazel, but it still doesn't wor

Hi
guys, can someone help? I think I threw this code in Hazel, but it still doesn't work =(
https://monosnap.com/file/cUFVdE5EYwWqp ... SgYnzqQzTP
guys, can someone help? I think I threw this code in Hazel, but it still doesn't work =(
https://monosnap.com/file/cUFVdE5EYwWqp ... SgYnzqQzTP
- Code: Select all
for file1 in /Users/ikatod/Resilio Sync/Realese/Basa/*.*
do
filename1=$(basename "${file1%.*}")
for file2 in /Users/ikatod/Resilio Sync/Realese/Scan/*.*
do
filename2=$(basename "${file2%.*}")
if [ "$filename1" = "$filename2" ];
then
cp "$file1" /Users/ikatod/Resilio Sync/Realese/Old/
mv "$file2" /Users/ikatod/Resilio Sync/Realese/Old/
else
continue
fi
done
done