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 <changcheng.liu@intel.com>
This commit is contained in:
Changcheng Liu 2018-11-21 20:14:16 +08:00
parent 60d4fa608e
commit ae5a294000

View File

@ -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