I usually use cheap ls -A to see if there is an answer.
Pseudo-possibly-correct-syntax Example-Ahoy:
if [[ $(ls -A my_directory_path_variable ) ]] then....
this will work:
myDir=(./*) if [ ${#myDir[@]} -gt 1 ]; then echo "there something down here"; fi
user559633
source
share