From ae5a294000c5a16fd2367465ebf42d352e805ffc Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Wed, 21 Nov 2018 20:14:16 +0800 Subject: [PATCH] make-debs.sh: clean dir to avoid build deb packages error Without this patch, it'll hit build error in the 2nd time. Example: make-deb.sh #no error: first time make-deb.sh #hit error: second time Signed-off-by: Changcheng Liu --- make-debs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-debs.sh b/make-debs.sh index a8bd786766b..5a7ca1aff5c 100755 --- a/make-debs.sh +++ b/make-debs.sh @@ -19,7 +19,7 @@ set -xe base=${1:-/tmp/release} codename=$(lsb_release -sc) releasedir=$base/$(lsb_release -si)/WORKDIR -rm -fr $releasedir +rm -fr $(dirname $releasedir) mkdir -p $releasedir # # remove all files not under git so they are not