GeezerVison is showing github.com — fix(ssh): report a failed home lookup instead of exiting silently · pingdotgg/t3code@7832302
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/ssh/src/tunnel.ts +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -626,7 +626,7 @@ while ! (set -C; printf '%s\\n' "$$" >"$LAUNCH_LOCK") 2>/dev/null; do |
626 | 626 | done |
627 | 627 | # Resolve with the new runner before replacing the old one: a failed home |
628 | 628 | # change must not consume the runner-change signal used for future updates. |
629 | | -DEFAULT_SERVER_HOME="$("$RUNNER_NEXT" __ssh-helper home-dir)" |
| 629 | +DEFAULT_SERVER_HOME="$("$RUNNER_NEXT" __ssh-helper home-dir)" || DEFAULT_SERVER_HOME="" |
630 | 630 | if [ -z "$DEFAULT_SERVER_HOME" ]; then |
631 | 631 | printf 'Could not resolve the remote T3 home.\\n' >&2 |
632 | 632 | exit 1 |
@@ -866,7 +866,7 @@ chmod 700 "$RUNNER_FILE" |
866 | 866 | if [ -f "$STATE_DIR/server-home" ]; then |
867 | 867 | PAIRING_BASE_DIR="$(cat "$STATE_DIR/server-home")" |
868 | 868 | else |
869 | | - PAIRING_BASE_DIR="$("$RUNNER_FILE" __ssh-helper home-dir)" |
| 869 | + PAIRING_BASE_DIR="$("$RUNNER_FILE" __ssh-helper home-dir)" || PAIRING_BASE_DIR="" |
870 | 870 | fi |
871 | 871 | if [ -z "$PAIRING_BASE_DIR" ]; then |
872 | 872 | printf 'Could not resolve the remote T3 home for pairing.\\n' >&2 |
|