zsh check if directory exists code example
Example: zsh check if directory exists
DIR_ABSOLUTE_PATH=/home/me/somedir
if [ -d "$DIR_ABSOLUTE_PATH" ]
then
echo "$DIR_ABSOLUTE_PATH exists."
fi
DIR_ABSOLUTE_PATH=/home/me/somedir
if [ -d "$DIR_ABSOLUTE_PATH" ]
then
echo "$DIR_ABSOLUTE_PATH exists."
fi