parent
94984e969d
commit
d3802572b5
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue