diff options
Diffstat (limited to 'users/grfn/system/home/modules/lib/cloneRepo.nix')
-rw-r--r-- | users/grfn/system/home/modules/lib/cloneRepo.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/users/grfn/system/home/modules/lib/cloneRepo.nix b/users/grfn/system/home/modules/lib/cloneRepo.nix index 54992bd69bae..a6455a4bdf70 100644 --- a/users/grfn/system/home/modules/lib/cloneRepo.nix +++ b/users/grfn/system/home/modules/lib/cloneRepo.nix @@ -62,10 +62,13 @@ with lib; in hm.dag.entryAfter ([ "writeBoundary" ] ++ after) '' $DRY_RUN_CMD mkdir -p $(dirname "${path}") if [[ ! -d ${path} ]]; then - $DRY_RUN_CMD git clone "${repoURL}" "${path}" - pushd ${path} - $DRY_RUN_CMD ${onClone} - popd + if $DRY_RUN_CMD git clone "${repoURL}" "${path}"; then + pushd ${path} + $DRY_RUN_CMD ${onClone} + popd + else + echo "Git repository ${path} failed to clone" + fi fi '') config.grfn.impure.clonedRepos; |