Ignore temporary-extraction on directory archiving

Change-Id: I4fb13c5b80f76d91837a3b9fa97eed6b9de162d6
diff --git a/script/korapxml2krill b/script/korapxml2krill
index 669c0d3..3530288 100644
--- a/script/korapxml2krill
+++ b/script/korapxml2krill
@@ -133,9 +133,11 @@
 # 2019/01/22
 # - Support for non-word tokens.
 #
-# 2019/02/07
+# 2019/02/13
 # - Support for 'koral:field' array.
 # - Support for Koral versioning.
+# - Ignore temporary extract parameter on
+#   directory archiving.
 # ----------------------------------------------------------
 
 our $LAST_CHANGE = '2019/02/07';
@@ -786,7 +788,7 @@
   my $archive_output;
 
   # First extract, then archive
-  if (defined $extract_dir) {
+  if (defined $extract_dir && !-d $input[0]) {
 
     # Create new archive object
     if (-f($input[0]) && (my $archive = KorAP::XML::Archive->new($input[0]))) {