#!/bin/bash
echo "$1"; [[ "$1" == */* ]] && mkdir -p "${1%/*}" 2>/dev/null