How to continue looping on failure?

I have following code, which would unrar all the rar file, but it failed on the first rar which require password, and then exit.
I tried add "|| true", but no luck

find ./downloaded/ -type f -iname \*.rar | while read ss
    ss="$(realpath "$ss")"
    cd "$(dirname "$ss")"
    unrar x -r -o+ "$ss" || true

>Solution :

unrar x -r -p- -o+ "$ss" || true

Do not query password

Leave a Reply