Преглед на файлове

create-pull-request: remove output directory

When 'git request-pull' fails it makes sense to remove output
directory. Otherwise create-pull-request will complain that
output directory already exists on the next run.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ed Bartosh преди 7 години
родител
ревизия
8535784ba8
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      scripts/create-pull-request

+ 1 - 0
scripts/create-pull-request

@@ -229,6 +229,7 @@ else
 fi
 if [ $? -ne 0 ]; then
 	echo "ERROR: git request-pull reported an error"
+	rm -rf $ODIR
 	exit 1
 fi