check-if-directory-exists-or-does-NOT-exist
Directory Exists
if [[ -d /tmp ]]
then
echo "Directory /tmp does exists."
fi
[ -d "./target" ] && echo 'Target directory exists'
Directory does not exist
if [[ ! -d /tmp2 ]]
then
echo "Directory /tmp2 does NOT exists."
return 1
fi