aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-03 10:03:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-03 10:03:43 +1300
commita2ff6f4e478689710a1bf3fdb8db97293a5fb6ec (patch)
tree76f29e7193cb1157ceb55fe36fab93d0ecaa48a3
parentAdd clwr() func (diff)
downloaddotfiles-a2ff6f4e478689710a1bf3fdb8db97293a5fb6ec.tar.gz
dotfiles-a2ff6f4e478689710a1bf3fdb8db97293a5fb6ec.zip
Tell shellcheck it's wrong about this line
-rw-r--r--bash/bashrc.d/scp.bash5
1 files changed, 2 insertions, 3 deletions
diff --git a/bash/bashrc.d/scp.bash b/bash/bashrc.d/scp.bash
index 19e15aee..89cd2809 100644
--- a/bash/bashrc.d/scp.bash
+++ b/bash/bashrc.d/scp.bash
@@ -1,8 +1,7 @@
# Wrap scp(1) to check for missing colons
scp() {
- local argstring
- argstring=$*
- if (($# >= 2)) && [[ $argstring != *:* ]] ; then
+ # shellcheck disable=SC2048
+ if (($# >= 2)) && [[ $* != *:* ]] ; then
printf 'bash: %s: Missing colon, probably an error\n' \
"$FUNCNAME" >&2
return 2