delete android scripts dir first, in case it exists

This commit is contained in:
Florian Schrofner 2024-11-17 13:45:53 +01:00
parent cd0450fe51
commit 2c379d0679

View file

@ -34,6 +34,7 @@
(defn- setup-android-scripts []
(let [android-scripts-dir (str home "/Projects/android-scripts")]
(-> (fs/file android-scripts-dir) (fs/delete-tree))
(fs/create-dirs android-scripts-dir)
(safe-sh "chown" "-R" (str user ":" user) android-scripts-dir)
(safe-sh-as-user "git" "clone" "ssh://git@git.schro.fi:4242/schrofi/android-scripts.git" android-scripts-dir)))