I want to test if a directory doesn't contain any files. If so, I will skip some processing.
I tried the following:
if [ ./* == "./*" ]; then echo "No new file" exit 1 fi
That gives the following error:
line 1: [: too many arguments
Is there a solution/alternative?