Skip to content

Commit

Permalink
better (?) Git log
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Jul 20, 2024
1 parent fef9612 commit 11cb6c5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion themes/src/make.nu
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,22 @@ def make_theme [ name: string, origin: string = "lemnos" ] {
def main [] {
mkdir $themes_dir

try { git clone $LEMNOS_SOURCE.remote_repo $LEMNOS_SOURCE.local_repo }
if ($LEMNOS_SOURCE.local_repo | path exists) {
warn "local copy of Lemnos' themes already exists"
info "updating local copy"
try {
git -C $LEMNOS_SOURCE.local_repo pull origin master
} catch {
err "failed updating local copy"
}
} else {
info "cloning Lemnos' themes"
try {
git clone $LEMNOS_SOURCE.remote_repo $LEMNOS_SOURCE.local_repo
} catch {
error make --unspanned { msg: "failed cloning local copy" }
}
}

let themes = ls $LEMNOS_SOURCE.dir
| insert source "lemnos"
Expand Down

0 comments on commit 11cb6c5

Please sign in to comment.