What is the difference between [ test ] and [[ test ]] in bash?
When is one more appropriate than the other and what does the ;
at the end do?
if [[ -z $DIRECTORY ]];
then
DIRECTORY=html
fi
if [ ! -d "$DIRECTORY" ]; then
echo installation directory "'${DIRECTORY}'" does not exist
exit 1
fi