summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index b7a1d49057b..f0f725b97a6 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -1996,7 +1996,11 @@ sub action_restore {
}
}
} else {
- print "No backups available in $opts{'backupdir'}\n";
+ if ($opts{'json'}) {
+ print "[]\n";
+ } else {
+ print "No backups available in $opts{'backupdir'}\n";
+ }
}
return ($F_OK | $F_NOPOSTACTION);
}