proper return code (true) if file is absent;
authorwenzelm
Sat, 28 Jul 2018 21:21:26 +0200
changeset 68704 71aa5a9128c2
parent 68703 2e31887d9664
child 68705 5cbd9cda7626
proper return code (true) if file is absent;
src/Pure/Thy/present.scala
--- a/src/Pure/Thy/present.scala	Sat Jul 28 19:55:14 2018 +0200
+++ b/src/Pure/Thy/present.scala	Sat Jul 28 21:21:26 2018 +0200
@@ -277,8 +277,8 @@
         "Failed to build document in " + File.path(dir.absolute_file))
     }
 
-    bash("[ -f " + root_bash(document_format) + " ] && cp -f " +
-      root_bash(document_format) + " " + File.bash_path(document_target)).check
+    bash("if [ -f " + root_bash(document_format) + " ]; then cp -f " +
+      root_bash(document_format) + " " + File.bash_path(document_target) + "; fi").check
   }