More verbose logging when you want it
This commit is contained in:
parent
2761fee87e
commit
156ef9ab54
@ -105,6 +105,7 @@ build-home() {
|
||||
local tmpdir="$(mktemp -d "tmp.$USER.$_name.XXXXXXXX")"
|
||||
trap "cleanup $tmpdir" EXIT
|
||||
pushd "$tmpdir" > /dev/null 2>&1
|
||||
log "Cloning into temporary directory: $tmpdir" 2
|
||||
git clone \
|
||||
--recursive \
|
||||
--depth 50 \
|
||||
@ -115,6 +116,7 @@ build-home() {
|
||||
|
||||
# Sync the temporary directory over
|
||||
log "Moving cloned repository into destination"
|
||||
log "Moving from $tmpdor to $dest"
|
||||
rsync -rl "$tmpdir/" "$dest/"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user