diff options
author | Norbert Preining <preining@logic.at> | 2018-04-01 02:38:10 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2018-04-01 02:38:10 +0000 |
commit | 4eb42d0a91b4782d58af6143f15b229cf4da2454 (patch) | |
tree | e6d5fa8f0a8103c2539eab5c76febfb682f8fcd5 | |
parent | 476e82c79e2c528c5bd5bedc8c332deedd35a00f (diff) |
tlmgr restore --json: return empty array instead of plain text
git-svn-id: svn://tug.org/texlive/trunk@47218 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 6 |
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); } |