What command can be used to check if a directory exists or not, within a Bash shell script?
I find the double-bracket version of test makes writing logic tests more natural:
test
if [[ -d "${DIRECTORY}" && ! -L "${DIRECTORY}" ]] ; then echo "It's a bona-fide directory" fi