Skip to content

Commit

Permalink
Shorten unzip options
Browse files Browse the repository at this point in the history
  • Loading branch information
hisaitami committed Nov 25, 2023
1 parent 4046ec2 commit feb2ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tldr.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
zip-path (download-zip zip-url (:path (io/file tmp-dir zip-file)))]
(when *verbose* (println "Successfully downloaded:" zip-path))
(shell/with-sh-dir (:home env)
(sh "unzip" "-q" "-u" "-o" zip-path "-d" tldr-home))
(sh "unzip" "-q" "-uo" zip-path "-d" tldr-home))
(when (io/directory? tmp-dir) (sh "rm" "-rf" tmp-dir))
(spit cache-date (current-datetime))
(println "Successfully updated local database")))
Expand Down

0 comments on commit feb2ddc

Please sign in to comment.