aboutsummaryrefslogblamecommitdiff
path: root/bash/bashrc.d/scp.bash
blob: ee55061fa71e90ca08f951aca409d953ad817500 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                            

                                                               
                



                    
# Wrap scp to check for missing colons
scp() {
    if (($# >= 2)) && [[ $* != *:* ]] ; then
        printf 'bash: %s: Missing colon, probably an error\n' \
            "$FUNCNAME" >&2
        return 2
    fi
    command scp "$@"
}