From: Ed Bartosh Date: Wed, 14 Sep 2016 12:02:04 +0000 (+0300) Subject: create-pull-request: remove output directory X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8535784ba84060e0e7ca05e7771a58f9c70c69b9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 3f30cf1965d..a88f35a4a39 100755 --- a/scripts/create-pull-request +++ b/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