diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-09-14 15:02:04 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-14 22:35:15 +0100 |
commit | 8535784ba84060e0e7ca05e7771a58f9c70c69b9 (patch) | |
tree | 22b6fea1a550a50cc1088d24845a22253d17ff60 /scripts/create-pull-request | |
parent | fd4f4264a99cb0f8d20e3d87f66102d99cb5b6ad (diff) | |
download | openembedded-core-8535784ba84060e0e7ca05e7771a58f9c70c69b9.tar.gz openembedded-core-8535784ba84060e0e7ca05e7771a58f9c70c69b9.tar.bz2 openembedded-core-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>
Diffstat (limited to 'scripts/create-pull-request')
-rwxr-xr-x | scripts/create-pull-request | 1 |
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 |