compat-drivers: fix kup mkdir on gen-release.sh
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 21 Sep 2012 22:05:32 +0000 (15:05 -0700)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 21 Sep 2012 22:05:32 +0000 (15:05 -0700)
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>
scripts/gen-release.sh

index 3e2733ca4facd1006d23a595d812dfc062958710..356ff9bdcf21890eeb8d74c593695d28f1ad2602 100755 (executable)
@@ -239,8 +239,8 @@ if [[ "$BASE_TREE" = "linux-next" ]]; then
 
 
        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