aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/scp.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-31 16:09:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-31 16:09:37 +1200
commitc7deb07ae0b6d554d80f3c36d6b0f4f7ec0b3daa (patch)
treea23843a603a85d7cefb43e18c30feca732e2454b /bash/bashrc.d/scp.bash
parentUse name of binary for GnuPG funcs (diff)
downloaddotfiles-c7deb07ae0b6d554d80f3c36d6b0f4f7ec0b3daa.tar.gz
dotfiles-c7deb07ae0b6d554d80f3c36d6b0f4f7ec0b3daa.zip
Better variable name
Diffstat (limited to 'bash/bashrc.d/scp.bash')
-rw-r--r--bash/bashrc.d/scp.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/scp.bash b/bash/bashrc.d/scp.bash
index 9acb9894..819c6f26 100644
--- a/bash/bashrc.d/scp.bash
+++ b/bash/bashrc.d/scp.bash
@@ -1,7 +1,7 @@
# Wrap scp to check for missing colons
scp() {
- local optstring=$*
- if (($# >= 2)) && [[ $optstring != *:* ]] ; then
+ local argstring=$*
+ if (($# >= 2)) && [[ $argstring != *:* ]] ; then
printf 'bash: %s: Missing colon, probably an error\n' \
"$FUNCNAME" >&2
return 2