src/Tools/Code/code_target.ML
changeset 43850 7f2cbc713344
parent 43564 9864182c6bad
child 44751 f523923d8182
--- a/src/Tools/Code/code_target.ML	Sat Jul 16 20:14:58 2011 +0200
+++ b/src/Tools/Code/code_target.ML	Sat Jul 16 20:52:41 2011 +0200
@@ -403,11 +403,13 @@
         val _ = export (SOME destination) (invoke_serializer thy target (SOME 80)
           module_name args naming program names_cs);
         val cmd = make_command module_name;
-      in if bash ("cd " ^ File.shell_path p ^ " && " ^ cmd ^ " 2>&1") <> 0
+      in
+        if Isabelle_System.bash ("cd " ^ File.shell_path p ^ " && " ^ cmd ^ " 2>&1") <> 0
         then error ("Code check failed for " ^ target ^ ": " ^ cmd)
         else ()
       end;
-  in if getenv env_var = ""
+  in
+    if getenv env_var = ""
     then if strict
       then error (env_var ^ " not set; cannot check code for " ^ target)
       else warning (env_var ^ " not set; skipped checking code for " ^ target)