diff options
author | Norbert Preining <preining@logic.at> | 2008-05-03 10:43:44 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-05-03 10:43:44 +0000 |
commit | 51960de8eb4b9ae0c4beec7314e4a19a415afb2a (patch) | |
tree | bb4703a61db553159363cdc64863acf0f5f7798e /Master/texmf | |
parent | 9dd95f164399b9b9cb7724b63a1c06873e99869c (diff) |
check for the existence before removing
git-svn-id: svn://tug.org/texlive/trunk@7816 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index 2aea411f332..8101ee9c4aa 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -808,7 +808,9 @@ sub action_uninstall { system("rm", "-rf", "$texdir/texmf"); system("rm", "-rf", "$texdir/tlpkg"); system("rm", "-rf", "$texdir/bin"); - system("rmdir", "--ignore-fail-on-non-empty", "$texdir/temp"); + if (-d "$texdir/temp") { + system("rmdir", "--ignore-fail-on-non-empty", "$texdir/temp"); + } unlink("$texdir/install-tl.log"); # should we do that???? system("rm", "-rf", "$texdir/texmf-config"); |