test ... || mkdir ...
↧
Answer by Ignacio Vazquez-Abrams for Shell script to test whether a directory exists and if not create it?
↧
test ... || mkdir ...