SyntaxFix
Write A Post
Hire A Developer
Questions
Do a test
[[ -d dir ]] || mkdir dir
Or use -p option:
mkdir -p dir