blob: ee55061fa71e90ca08f951aca409d953ad817500 (
plain) (
tree)
|
|
# Wrap scp to check for missing colons
scp() {
if (($# >= 2)) && [[ $* != *:* ]] ; then
printf 'bash: %s: Missing colon, probably an error\n' \
"$FUNCNAME" >&2
return 2
fi
command scp "$@"
}
|