Sprawdź katalog w Bash

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