summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-09-14 15:02:04 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-14 22:35:15 +0100
commit8535784ba84060e0e7ca05e7771a58f9c70c69b9 (patch)
tree22b6fea1a550a50cc1088d24845a22253d17ff60
parentfd4f4264a99cb0f8d20e3d87f66102d99cb5b6ad (diff)
downloadopenembedded-core-contrib-8535784ba84060e0e7ca05e7771a58f9c70c69b9.tar.gz
openembedded-core-contrib-8535784ba84060e0e7ca05e7771a58f9c70c69b9.tar.bz2
openembedded-core-contrib-8535784ba84060e0e7ca05e7771a58f9c70c69b9.zip
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>
-rwxr-xr-xscripts/create-pull-request1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 3f30cf1965..a88f35a4a3 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