summaryrefslogtreecommitdiff
path: root/Master/install-tl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-10-27 21:55:40 +0000
committerKarl Berry <karl@freefriends.org>2018-10-27 21:55:40 +0000
commit626fc4fe8a23522a640294de4b6bf02084f2b832 (patch)
tree186071712cc8e3b893e55f513a11863e3afbf91b /Master/install-tl
parent2c9f19a61fd76d108374ada42ea921523052a2f5 (diff)
(run_postinst_cmd): let's try reporting failed
postinst command. git-svn-id: svn://tug.org/texlive/trunk@49005 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-xMaster/install-tl11
1 files changed, 6 insertions, 5 deletions
diff --git a/Master/install-tl b/Master/install-tl
index 97f8202b973..1d2c3a8e9bc 100755
--- a/Master/install-tl
+++ b/Master/install-tl
@@ -965,13 +965,14 @@ sub run_postinst_cmd {
info ("running $cmd ...");
my ($out,$ret) = TeXLive::TLUtils::run_cmd ("$cmd 2>&1");
- info ("done\n");
- log ($out);
-
- if ($ret != 0) {
- tlwarn ("$0: $cmd failed: $!\n");
+ if ($ret == 0) {
+ info ("done\n");
+ } else {
+ info ("failed\n");
+ tlwarn ("$0: $cmd failed (status $ret): $!\n");
$ret = 1; # be sure we don't overflow the sum on anything crazy
}
+ log ($out);
return $ret;
} # run_postinst_cmd