]> njoseph.me Git - babashka-scripts.git/blobdiff - lib.clj
Format all Clojure files using zprint
[babashka-scripts.git] / lib.clj
diff --git a/lib.clj b/lib.clj
index 86dc702b3bcc15a94c2f99a5f9355a8914f2cd94..8978c3a2acf466c281022da8d72caaaf16a1bc91 100644 (file)
--- a/lib.clj
+++ b/lib.clj
@@ -1,4 +1,4 @@
-;
+; Common utility functions used by scripts
 
 (import '[java.nio.file Files FileSystems CopyOption StandardCopyOption])
 
@@ -9,10 +9,12 @@
         dest (io/file destination)
         fs (FileSystems/newFileSystem (.toPath zip-file) nil)
         file-in-zip (.getPath fs source (into-array String []))]
-    (Files/copy file-in-zip (.toPath dest)
+    (Files/copy file-in-zip
+                (.toPath dest)
                 (into-array CopyOption [StandardCopyOption/REPLACE_EXISTING]))))
 
-(defn expand-home [s]
+(defn expand-home
+  [s]
   (if (.startsWith s "~")
     (clojure.string/replace-first s "~" (System/getProperty "user.home"))
     s))