#!/bin/sh PWD=/home/hendry/static.natalian.org # have to set this manually for some reason otherwise PWD is b0rked DATE=`date --iso-8601` # will be superseded by date --rfc-3339=date DATEPATH=$PWD/$DATE mkdir $DATEPATH >/dev/null 2>&1 || true # might throw an error if already created echo $DATEPATH