#!/bin/bash
read -r DIRNAME # не изменять
if [ -d "$DIRNAME" ]; then
echo "exists"
else
mkdir -p "$DIRNAME"
echo "created"
fi