diff options
Diffstat (limited to 'bash/bashrc.d/scp.bash')
-rw-r--r-- | bash/bashrc.d/scp.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/scp.bash b/bash/bashrc.d/scp.bash index 819c6f26..0b3e34db 100644 --- a/bash/bashrc.d/scp.bash +++ b/bash/bashrc.d/scp.bash @@ -1,6 +1,7 @@ # Wrap scp to check for missing colons scp() { - local argstring=$* + local argstring + argstring=$* if (($# >= 2)) && [[ $argstring != *:* ]] ; then printf 'bash: %s: Missing colon, probably an error\n' \ "$FUNCNAME" >&2 |