From 8535784ba84060e0e7ca05e7771a58f9c70c69b9 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 14 Sep 2016 15:02:04 +0300 Subject: 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 --- scripts/create-pull-request | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/create-pull-request') 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 -- cgit 1.2.3-korg