fix(riot): scp, and ci

note that riot still has problems with spaces. we should use array to
handle parameters.
This commit is contained in:
2024-12-22 13:38:43 +08:00
parent fb5804faef
commit 5318740ed4
2 changed files with 6 additions and 6 deletions

View File

@@ -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)"