📅  最后修改于: 2022-03-11 14:51:50.994000             🧑  作者: Mango
DIR="/etc/httpd/"
if [ -d "$DIR" ]; then
### Take action if $DIR exists ###
echo "Installing config files in ${DIR}..."
else
### Control will jump here if $DIR does NOT exists ###
echo "Error: ${DIR} not found. Can not continue."
exit 1
fi