Verifique el directorio en Bash
[[ -d <directory> ]] && echo "This is a directory and it exist"
A-Siam
[[ -d <directory> ]] && echo "This is a directory and it exist"