aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
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
parentUse name of binary for GnuPG funcs (diff)
downloaddotfiles-c7deb07ae0b6d554d80f3c36d6b0f4f7ec0b3daa.tar.gz
dotfiles-c7deb07ae0b6d554d80f3c36d6b0f4f7ec0b3daa.zip
Better variable name
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/gpg.bash4
-rw-r--r--bash/bashrc.d/scp.bash4
2 files changed, 4 insertions, 4 deletions
diff --git a/bash/bashrc.d/gpg.bash b/bash/bashrc.d/gpg.bash
index 1544f8a2..c1221d84 100644
--- a/bash/bashrc.d/gpg.bash
+++ b/bash/bashrc.d/gpg.bash
@@ -1,7 +1,7 @@
# Wrapper around gpg(1) to stop ``--batch'' breaking things
gpg() {
- local optstring=$*
- case $optstring in
+ local argstring=$*
+ case $argstring in
*--ed*|*--gen-k*|*--sign-k*)
command gpg --no-batch "$@"
;;
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