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