Vérifiez le répertoire en bash

[[ -d <directory> ]] && echo "This is a directory and it exist"
A-Siam