From df821588de23ef412e5ece2539be9099942e491b Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Sat, 6 Jul 2024 23:25:34 +0800 Subject: [PATCH] moment --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index e24faaa..79f1e69 100755 --- a/restore.sh +++ b/restore.sh @@ -7377,7 +7377,7 @@ device_ssh() { print "* For accessing data, note the following:" print "* Host: sftp://127.0.0.1 | User: root | Password: (default is alpine) | Port: $ssh_port" $ssh -p $ssh_port root@127.0.0.1 - if [[ $! != 0 ]]; then + if [[ $? != 0 ]]; then log "Failed to connect to SSH as root. Connecting to device SSH as mobile..." print "* Host: sftp://127.0.0.1 | User: mobile | Password: | Port: $ssh_port" $ssh -p $ssh_port mobile@127.0.0.1