aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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