Check is directory exist shell code example
Example: Check is directory exist shell
DIR="/etc/httpd/"
if [ -d "$DIR" ]; then
# Take action if $DIR exists. #
echo "Installing config files in ${DIR}..."
fi
DIR="/etc/httpd/"
if [ -d "$DIR" ]; then
# Take action if $DIR exists. #
echo "Installing config files in ${DIR}..."
fi