* [PATCH] create-pull-request: remove output directory
@ 2016-09-14 12:02 Ed Bartosh
0 siblings, 0 replies; only message in thread
From: Ed Bartosh @ 2016-09-14 12:02 UTC (permalink / raw)
To: openembedded-core
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>
---
scripts/create-pull-request | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 3f30cf1..a88f35a 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
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-14 12:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-14 12:02 [PATCH] create-pull-request: remove output directory Ed Bartosh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox