diff options
Diffstat (limited to 'bash/bashrc.d/scp.bash')
-rw-r--r-- | bash/bashrc.d/scp.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/scp.bash b/bash/bashrc.d/scp.bash index 3d5fc1dd..0d97d283 100644 --- a/bash/bashrc.d/scp.bash +++ b/bash/bashrc.d/scp.bash @@ -1,7 +1,8 @@ # Wrap scp to check for missing colons scp() { if (($# >= 2)) && [[ $* != *:* ]] ; then - printf 'scp: Missing colon, probably an error\n' >&2 + printf 'bash: %s: Missing colon, probably an error\n' \ + "$FUNCNAME" >&2 return 1 fi command scp "$@" |