diff options
author | Jesús Corrius <jesus@softcatala.org> | 2010-10-15 23:47:37 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-10-16 23:12:21 +0200 |
commit | c87a8751c564e1b4473e5c8b508850c619caf913 (patch) | |
tree | 2c3080dd22b087ae95924eaf82c2b7af61233b6d /oowintool | |
parent | 162620c9038e81a60720a75b553b3267f9c32988 (diff) |
Don't show a perl error when .NET SDK is not found
Diffstat (limited to 'oowintool')
-rwxr-xr-x | oowintool | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oowintool b/oowintool index 890114a70994..c9e08107af96 100755 --- a/oowintool +++ b/oowintool @@ -275,7 +275,9 @@ sub print_dotnetsdk_dir() my $dir = reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework/sdkInstallRootv1.1") || reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework/sdkInstallRootv2.0"); - print cygpath ($dir, 'w', $output_format); + if ($dir) { + print cygpath ($dir, 'w', $output_format); + } } sub print_jdk_dir() |