More verbose logging when you want it

This commit is contained in:
Salt 2020-09-04 06:24:08 -05:00
parent 2761fee87e
commit 156ef9ab54

View File

@ -105,6 +105,7 @@ build-home() {
local tmpdir="$(mktemp -d "tmp.$USER.$_name.XXXXXXXX")" local tmpdir="$(mktemp -d "tmp.$USER.$_name.XXXXXXXX")"
trap "cleanup $tmpdir" EXIT trap "cleanup $tmpdir" EXIT
pushd "$tmpdir" > /dev/null 2>&1 pushd "$tmpdir" > /dev/null 2>&1
log "Cloning into temporary directory: $tmpdir" 2
git clone \ git clone \
--recursive \ --recursive \
--depth 50 \ --depth 50 \
@ -115,6 +116,7 @@ build-home() {
# Sync the temporary directory over # Sync the temporary directory over
log "Moving cloned repository into destination" log "Moving cloned repository into destination"
log "Moving from $tmpdor to $dest"
rsync -rl "$tmpdir/" "$dest/" rsync -rl "$tmpdir/" "$dest/"
} }