Skip to content

Commit

Permalink
Formatting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
emezeske committed May 31, 2012
1 parent bf031f1 commit 7b71668
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions support/src/cljsbuild/crossover.clj
Expand Up @@ -103,9 +103,9 @@ to prevent the compiler from reading a half-written file."
[from-resource to-file]
(let [temp-file (str to-file ".tmp")]
(spit temp-file (filtered-crossover-file from-resource))
(if-not (fs/rename temp-file to-file)
;We're on Windows, file can't be renamed atomically
;and operation is blocked
(when-not (fs/rename temp-file to-file)
; On Windows, if the destination file exists, attempting to replace
; it by renaming a different file will fail.
(do (fs/delete to-file)
(fs/rename temp-file to-file)))
; Mark the file as read-only, to hopefully warn the user not to modify it.
Expand Down

0 comments on commit 7b71668

Please sign in to comment.