kup does not expect an ending slash for mkdir, otherwise
it fails and does not even create the directory for you.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
kup mkdir ${KORG_BACKPORT}/${YEAR} > /dev/null 2>&1
- kup mkdir ${KORG_BACKPORT}/${YEAR}/${MONTH}/ > /dev/null 2>&1
- kup mkdir ${KORG_BACKPORT}/${YEAR}/${MONTH}/${DAY}/ > /dev/null 2>&1
+ kup mkdir ${KORG_BACKPORT}/${YEAR}/${MONTH} > /dev/null 2>&1
+ kup mkdir ${KORG_BACKPORT}/${YEAR}/${MONTH}/${DAY} > /dev/null 2>&1
kup ls ${KORG_BACKPORT}/${YEAR}/${MONTH}/${DAY}/ | grep ${RELEASE}.tar.bz2 > /dev/null 2>&1
if [[ $? -eq 0 ]]; then