check if a directory exists
I want to check if a directory exists, if so, set a variable for that directory, if it does not exists, I still want to set a variable. I want to be able to reuse that variable as a reference.
I want to be able to re-use a script whereby the
cwd => could either be
/home/webdev. My shell script needs to find out if the machine being setup has a dir that exists being either