]> git.sur5r.net Git - bacula/docs/blobdiff - docs/manual-de/translate_images.pl
Fix a collection of minor latex errors. The manual should now compile with no
[bacula/docs] / docs / manual-de / translate_images.pl
index c4e7bf2c02c0b97554afc765cd08dd444fd3944a..c7225118df6e8e5ca1cd2f0d8658b601a3961011 100755 (executable)
@@ -128,8 +128,12 @@ sub rename_images {
        my ($response);
 
        foreach (keys(%$translate)) {
-               $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
-               $response and print "ERROR from system    $response\n";
+               if (! $translate->{$_}) {
+                       print "    WARNING: No destination Filename for $_\n";
+               } else {
+                       $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
+                       $response and print "ERROR from system    $response\n";
+               }
        }
 }