diff --git a/scripts/riot b/scripts/riot index 7e3f6da..b81b653 100755 --- a/scripts/riot +++ b/scripts/riot @@ -202,11 +202,11 @@ run_scp() { dst_is_remote=0 fi if [[ "$dst_is_remote" == "1" ]]; then - SCP_SRC=\""$src"\" - SERVER="$SERVER":\""$dst"\" + SCP_SRC="$src" + SERVER="$SERVER":"$dst" else - SERVER="$SERVER":\""$src"\" - SCP_DST=\""$dst"\" + SERVER="$SERVER":"$src" + SCP_DST="$dst" fi SSH_OPTIONS="$SSH_OPTIONS -r" local cmd="$(prepare_ssh_cmd scp)" diff --git a/tools/test.zsh b/tools/test.zsh index bf00f6f..0a42b19 100644 --- a/tools/test.zsh +++ b/tools/test.zsh @@ -41,8 +41,8 @@ test $(echo n | tools/common.sh ask_for_yN "test") = "0" test $(echo | tools/common.sh ask_for_yN "test") = "0" test $(echo | tools/common.sh ask_for_Yn "test") = "1" test $(DFS_QUIET=1 tools/common.sh ask_for_Yn "test") = "1" -test "$(DFS_TRUST=1 riot time@is.impt:2222/yes@you-r.right/you@are.really.recht./ibd./try@it,another@host scp /tmp/ ./tmp -D 2>/dev/null)" = 'scp -P 12022 -o PermitLocalCommand=yes -o ControlMaster=auto -o ControlPath=~/.ssh/master-socket/%C -o ProxyJump=time@is.impt:2222,yes@you-r.right:12022,you@are.really.recht.:12022,root@ibd.:12022 -r try@it.dxng.net:"/tmp/" "./tmp" -scp -P 12022 -o PermitLocalCommand=yes -o ControlMaster=auto -o ControlPath=~/.ssh/master-socket/%C -o ForwardX11=yes -o ForwardAgent=yes -r another@host.dxng.net:"/tmp/" "./tmp"' +test "$(DFS_TRUST=1 riot time@is.impt:2222/yes@you-r.right/you@are.really.recht./ibd./try@it,another@host scp /tmp/ ./tmp -D 2>/dev/null)" = 'scp -P 12022 -o RequestTTY=yes -o PermitLocalCommand=yes -o ControlMaster=auto -o ControlPath=~/.ssh/master-socket/%C -o ProxyJump=time@is.impt:2222,yes@you-r.right:12022,you@are.really.recht:12022,root@ibd:12022 -r try@it.dxng.net:/tmp/ ./tmp +scp -P 12022 -o RequestTTY=yes -o PermitLocalCommand=yes -o ControlMaster=auto -o ControlPath=~/.ssh/master-socket/%C -o ForwardX11=yes -o ForwardAgent=yes -r another@host.dxng.net:/tmp/ ./tmp' # check alias alias p114