petrkotek / chromecastize

Bash script to convert video files into Google Chromecast supported format.
MIT License
178 stars 34 forks source link

Directories containing filesnames with whitespaces don't work #22

Closed stonemaster closed 7 years ago

stonemaster commented 9 years ago

If a directory contains movies files which have whitespace in their names chromecastize fails to correctly process the files because the central loop for f in $(find ...) splits strings by whitespace (which is the default in bash). I workaround this problem with another script which does the find -type f .. and sets IFS=$'\n' which makes the for loop break list items by new line...