src/Pure/System/isabelle_system.scala
changeset 75473 d7035cfa1f14
parent 75471 63f904ae4134
child 75475 f1d204a4d795
equal deleted inserted replaced
75472:ff6d4b48f23b 75473:d7035cfa1f14
   428     clean: Boolean = false,
   428     clean: Boolean = false,
   429     args: List[String] = Nil
   429     args: List[String] = Nil
   430   ): Process_Result = {
   430   ): Process_Result = {
   431     val script =
   431     val script =
   432       "rsync --protect-args --archive" +
   432       "rsync --protect-args --archive" +
   433         (if (verbose) " --verbose" else "") +
   433         (if (verbose || dry_run) " --verbose" else "") +
   434         (if (dry_run) " --dry-run" else "") +
   434         (if (dry_run) " --dry-run" else "") +
   435         (if (clean) " --delete-excluded" else "") +
   435         (if (clean) " --delete-excluded" else "") +
   436         (if (args.nonEmpty) " " + Bash.strings(args) else "")
   436         (if (args.nonEmpty) " " + Bash.strings(args) else "")
   437     progress.bash(script, cwd = cwd, echo = true)
   437     progress.bash(script, cwd = cwd, echo = true)
   438   }
   438   }