From 36c783f71f4b44f479f7f6d74cdce67731102908 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 16 Apr 2015 16:39:51 +1200 Subject: Whoops, didn't mean to delete it --- bash/bashrc.d/scp.bash | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bash/bashrc.d/scp.bash (limited to 'bash') diff --git a/bash/bashrc.d/scp.bash b/bash/bashrc.d/scp.bash new file mode 100644 index 00000000..3d5fc1dd --- /dev/null +++ b/bash/bashrc.d/scp.bash @@ -0,0 +1,9 @@ +# Wrap scp to check for missing colons +scp() { + if (($# >= 2)) && [[ $* != *:* ]] ; then + printf 'scp: Missing colon, probably an error\n' >&2 + return 1 + fi + command scp "$@" +} + -- cgit v1.2.3