supress btrbk_run lastest link error

fix copy: only add ssh for remote
master
David Kebler 2024-03-20 11:09:07 -07:00
parent 94984e969d
commit d3802572b5
2 changed files with 5 additions and 3 deletions

View File

@ -73,8 +73,8 @@ for dest in $dests; do
for snap in $latest; do for snap in $latest; do
# [[ -e $dest/${snap%%.*}.latest ]] && $dry_run_echo sudo rm $dest/${snap%%.*}.latest # [[ -e $dest/${snap%%.*}.latest ]] && $dry_run_echo sudo rm $dest/${snap%%.*}.latest
local cmd="sudo ln -srfn $dest/$snap $dest/${snap%%.*}.latest" local cmd="sudo ln -srfn $dest/$snap $dest/${snap%%.*}.latest"
echo $cmd echo $cmd
[[ ! $dry_run ]] && $cmd [[ ! $dry_run ]] && $cmd >&2 /dev/null
done done
done done

View File

@ -186,7 +186,9 @@ EOF
else else
args+=("${@:1}") args+=("${@:1}")
fi fi
args+=( "$(remove_end_spaces "-e '$(ssh -l "${sshargs[*]}")'")")
[[ $DHOST || $SHOST ]] && [[ $sshargs ]] && args+=( "$(remove_end_spaces "-e '$(ssh -l "${sshargs[*]}")'")")
# assemble options # assemble options
[[ ! $exec ]] && args+=(--dry-run -v) [[ ! $exec ]] && args+=(--dry-run -v)