Fix Syntax error: unexpected end of file in a “for loop”

So I tried to fix this problem by myself for a couple of hours but I couldn’t
here’s the code block that has a problem I changed it, rewritten, I even tried to “do” only echo after each line but it doesn’t seem to work. It is a code to decrypt CSV files of a game for some event thing. In case u want, here’s full code

for path in $(find assets -name "*.csv")


    f=$(echo "$path" | rev | cut -d"/" -f1 | rev)


            dd if=$path bs=1 count=9 status=none

            dd if=/dev/zero bs=1 count=4 status=none

            dd if=$path bs=1 skip=9 status=none

        ) | lzma -dc -f > "decrypted/"$f


Go to Source
Author: Dev