migrate 第5步守衛修引號:sed 樣式內層的雙引號未_escape,遠端壳層炸 unexpected EOF
This commit is contained in:
parent
8f829da5fc
commit
1254e96535
|
|
@ -135,7 +135,7 @@ fi
|
|||
say "5/7 大腦那台的 AnyBot 改接新帳號伺服器"
|
||||
# 大脑已经接在目标服务器上就跳过(幂等:重跑迁移工具不该把已接好的拔了重接,
|
||||
# 而且开了 2FA 的账号 CLI 本来也登不进,跳过是唯一正路)。
|
||||
CUR=$(ssh -o BatchMode=yes "$SSH_TARGET" 'for S in "$HOME/.local/share/AnyBot/state.json"; do [ -f "$S" ] && sed -n "s/.*\"relay_url\": *\"\([^"]*\)\".*/\1/p" "$S" | head -1; done')
|
||||
CUR=$(ssh -o BatchMode=yes "$SSH_TARGET" 'for S in "$HOME/.local/share/AnyBot/state.json"; do [ -f "$S" ] && sed -n "s/.*\"relay_url\": *\"\([^\"]*\)\".*/\1/p" "$S" | head -1; done')
|
||||
if [ "$CUR" = "$NEW_URL" ]; then
|
||||
ok "大腦本來就接在這個帳號服务器上——跳過"
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue