Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-11 14:23:02 +0200
committerErich Eckner <git@eckner.net>2018-04-11 14:23:02 +0200
commit61260304cac973e6808128f54c61ac6ec95d0a81 (patch)
tree8ab21f76391a19c2b2d4e408016954993075b7ca /lib/common-functions
parenta41bc954609a107a6044d6be0d681196a5184221 (diff)
lib/common-functions: make_source_info: rm $output on failure
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 0e4abff..a479f5f 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -528,7 +528,8 @@ make_source_info() {
makepkg --printsrcinfo
cd ..
} > \
- "${output}"
+ "${output}" || \
+ rm -f "${output}"
)