aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/scp.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-04-29 17:35:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-04-29 17:35:36 +1200
commit62c8407e2d23c52e71f099de920ec91fce3f622b (patch)
tree1871b53141ec0c8f6f3ca2a9a57638ac0fb3e24b /bash/bashrc.d/scp.bash
parentOnly print line if at least one arg (diff)
downloaddotfiles-62c8407e2d23c52e71f099de920ec91fce3f622b.tar.gz
dotfiles-62c8407e2d23c52e71f099de920ec91fce3f622b.zip
Use FUNCNAME rather than hardcoding helper funcs
Diffstat (limited to 'bash/bashrc.d/scp.bash')
-rw-r--r--bash/bashrc.d/scp.bash3
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 "$@"