diff --git a/misc-scripts/CopyDBoverServer.pl b/misc-scripts/CopyDBoverServer.pl
index 5692bff10cc84748bd1a9cbf396a597f2aabfdfb..eed4b8fa873afa0163c0f048f124337599a26f31 100755
--- a/misc-scripts/CopyDBoverServer.pl
+++ b/misc-scripts/CopyDBoverServer.pl
@@ -406,7 +406,7 @@ foreach my $spec (@todo) {
     next;
   }
 
-  if(defined $target_location) {
+  if($target_location) {
     $target_dir = $target_location;
   }