Periksa direktori di bash

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