From a2ff6f4e478689710a1bf3fdb8db97293a5fb6ec Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 3 Mar 2016 10:03:43 +1300 Subject: Tell shellcheck it's wrong about this line --- bash/bashrc.d/scp.bash | 5 ++--- 1 file 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 -- cgit v1.2.3