blob: 0d97d28357f1d75f8eeae20b326043db6245e630 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
# Wrap scp to check for missing colons
scp() {
if (($# >= 2)) && [[ $* != *:* ]] ; then
printf 'bash: %s: Missing colon, probably an error\n' \
"$FUNCNAME" >&2
return 1
fi
command scp "$@"
}
|