Skip to contentSkip to conversation

create-pull-request: remove output directory

PATCH New Ed Bartosh 1 participant 1 message Sep 14, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 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.

---
 scripts/create-pull-request | 1 +
 1 file changed, 1 insertion(+)
scripts/create-pull-request +1 -0
index 3f30cf1..a88f35a 100755
@@ -229,6 +229,7 @@ else
 fi
 if [ $? -ne 0 ]; then
 	echo "ERROR: git request-pull reported an error"
+	rm -rf $ODIR
 	exit 1
 fi
 
Signature · 1 line
2.1.4