Merge reactormixins-4987
[twisted.git] / admin / aapscp
blob588faa87f277666b5ea5dd04b0487290c668d470
1 #!sh
2 # Look for cygpath (a pretty good indicator that we're in cygwin)
3 # and, if found, use it to protect evil drive letters
4 if command -v cygpath >/dev/null 2>&1; then
5     filefrom=$(cygpath "$1")
6     fileto=$(cygpath "$2")
7     scp -C -p "$filefrom" "$fileto"
8 else
9     # here, we're probably unix
10     scp -C -p $1 $2