1
0
Fork 0

delete android scripts dir first, in case it exists

master
Florian Schrofner 2024-11-17 13:45:53 +01:00
parent cd0450fe51
commit 2c379d0679
1 changed files with 1 additions and 0 deletions

View File

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