Fix test for directory master
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 May 2017 12:35:40 +0000 (14:35 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 May 2017 12:35:40 +0000 (14:35 +0200)
id-deb-build/docker-build.sh

index f09202a..507f081 100755 (executable)
@@ -34,7 +34,7 @@ prepare_deb()
     DISTS=$2
 
     for dist in ${DISTS}; do
     DISTS=$2
 
     for dist in ${DISTS}; do
-       test -f build/$TYPE/$dist && sudo rm -fr build/$TYPE/$dist
+       test -d build/$TYPE/$dist && sudo rm -fr build/$TYPE/$dist
        mkdir -p build/$TYPE
        cp -a deb-src build/$TYPE/$dist
        cp ${ID_DEB_BUILD}/in-docker-deb.sh build/$TYPE/$dist
        mkdir -p build/$TYPE
        cp -a deb-src build/$TYPE/$dist
        cp ${ID_DEB_BUILD}/in-docker-deb.sh build/$TYPE/$dist