diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-31 16:09:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-31 16:09:37 +1200 |
commit | c7deb07ae0b6d554d80f3c36d6b0f4f7ec0b3daa (patch) | |
tree | a23843a603a85d7cefb43e18c30feca732e2454b | |
parent | Use name of binary for GnuPG funcs (diff) | |
download | dotfiles-c7deb07ae0b6d554d80f3c36d6b0f4f7ec0b3daa.tar.gz dotfiles-c7deb07ae0b6d554d80f3c36d6b0f4f7ec0b3daa.zip |
Better variable name
-rw-r--r-- | bash/bashrc.d/gpg.bash | 4 | ||||
-rw-r--r-- | bash/bashrc.d/scp.bash | 4 |
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 |