parent
94984e969d
commit
d3802572b5
|
@ -74,7 +74,7 @@ for snap in $latest; do
|
|||
# [[ -e $dest/${snap%%.*}.latest ]] && $dry_run_echo sudo rm $dest/${snap%%.*}.latest
|
||||
local cmd="sudo ln -srfn $dest/$snap $dest/${snap%%.*}.latest"
|
||||
echo $cmd
|
||||
[[ ! $dry_run ]] && $cmd
|
||||
[[ ! $dry_run ]] && $cmd >&2 /dev/null
|
||||
done
|
||||
done
|
||||
|
||||
|
|
|
@ -186,7 +186,9 @@ EOF
|
|||
else
|
||||
args+=("${@:1}")
|
||||
fi
|
||||
args+=( "$(remove_end_spaces "-e '$(ssh -l "${sshargs[*]}")'")")
|
||||
|
||||
[[ $DHOST || $SHOST ]] && [[ $sshargs ]] && args+=( "$(remove_end_spaces "-e '$(ssh -l "${sshargs[*]}")'")")
|
||||
|
||||
|
||||
# assemble options
|
||||
[[ ! $exec ]] && args+=(--dry-run -v)
|
Loading…
Reference in New Issue