Hello, consider the following code:
EXTENSION=jpg INPUT_FILES=*.$EXTENSION if [ -z "$INPUT_FILES" ]; then echo "No .$EXTENSION input files in this directory" exit -1 fi Consider a dir with some .jpg files. the if close is not executed. This is correct. Consider now a dir without .jpg files. Then the if close also isn't executed, while it should. The script isn't exited and runs further with all wrong actions as consequence. What is wrong here? Best regards, Francky Leyn