why does not work this condition?
if [ -d /home/virt -a $(ls -A /home/virt/) = 0 ]
Exists of directory /home/virt AND check if the directory is /home/virt/ empty
Thank you...
why does not work this condition?
if [ -d /home/virt -a $(ls -A /home/virt/) = 0 ]
Exists of directory /home/virt AND check if the directory is /home/virt/ empty
Thank you...