open-remote-ssh
open-remote-ssh copied to clipboard
Cannot install server on host whose default shell is tcsh
I was trying to connect my server whose default shell is tcsh. The installation of open remote-ssh server was failed and gave me the following output.
[Trace - 21:20:46.517] Server install command stderr:
Unmatched '.
Bad : modifier in $ (-).
DISTRO_VERSION=1.79.2: Command not found.
DISTRO_COMMIT=19c0f5cefaeb2637b45a9c7a356151fcfdcda1e9: Command not found.
DISTRO_QUALITY=stable: Command not found.
DISTRO_VSCODIUM_RELEASE=23166: Command not found.
SERVER_APP_NAME=codium-server: Command not found.
SERVER_INITIAL_EXTENSIONS=: Command not found.
SERVER_LISTEN_FLAG=--port=0: Command not found.
SERVER_DATA_DIR=/home/grgroup/luozf/.vscodium-server: Command not found.
SERVER_DATA_DIR: Undefined variable.
SERVER_DIR: Undefined variable.
SERVER_DATA_DIR: Undefined variable.
SERVER_DATA_DIR: Undefined variable.
SERVER_DATA_DIR: Undefined variable.
SERVER_OS=: Command not found.
SERVER_ARCH=: Command not found.
SERVER_CONNECTION_TOKEN=: Command not found.
SERVER_DOWNLOAD_URL=: Command not found.
LISTENING_ON=: Command not found.
OS_RELEASE_ID=: Command not found.
ARCH=: Command not found.
PLATFORM=: Command not found.
Badly placed ()'s.
LISTENING_ON: Undefined variable.
SERVER_CONNECTION_TOKEN: Undefined variable.
SERVER_LOGFILE: Undefined variable.
OS_RELEASE_ID: Undefined variable.
ARCH: Undefined variable.
PLATFORM: Undefined variable.
TMP_DIR: Undefined variable.
}: Command not found.
Illegal variable name.
PLATFORM: Undefined variable.
Too many )'s.
SERVER_OS=darwin: Command not found.
Too many )'s.
SERVER_OS=linux: Command not found.
Too many )'s.
SERVER_OS=freebsd: Command not found.
Too many )'s.
SERVER_OS=dragonfly: Command not found.
Too many )'s.
PLATFORM: Undefined variable.
print_install_results_and_exit: Command not found.
esac: Command not found.
Illegal variable name.
ARCH: Undefined variable.
Too many )'s.
SERVER_ARCH=x64: Command not found.
Too many )'s.
SERVER_ARCH=armhf: Command not found.
Too many )'s.
SERVER_ARCH=arm64: Command not found.
Too many )'s.
SERVER_ARCH=ppc64le: Command not found.
Too many )'s.
ARCH: Undefined variable.
print_install_results_and_exit: Command not found.
esac: Command not found.
Illegal variable name.
OS_RELEASE_ID: Undefined variable.
Illegal variable name.
OS_RELEASE_ID: Undefined variable.
OS_RELEASE_ID=unknown: Command not found.
fi: Command not found.
fi: Command not found.
SERVER_DIR: Undefined variable.
SERVER_DIR: Undefined variable.
if: Empty if.
then: Command not found.
print_install_results_and_exit: Command not found.
fi: Command not found.
fi: Command not found.
Illegal variable name.
SERVER_SCRIPT: Undefined variable.
SERVER_OS: Undefined variable.
SERVER_OS: Undefined variable.
print_install_results_and_exit: Command not found.
fi: Command not found.
SERVER_DIR: Undefined variable.
Illegal variable name.
SERVER_DOWNLOAD_URL: Undefined variable.
Illegal variable name.
SERVER_DOWNLOAD_URL: Undefined variable.
else: endif not found.
[Trace - 21:20:46.517] Server install command stdout:
a30bc44d8f9679d54a4cb60a: start
exitCode====
a30bc44d8f9679d54a4cb60a: end
Error creating server install directory
[Error - 21:20:46.518] Error resolving authority
Error: Couldn't install vscode server on remote server, install script returned non-zero exit status
at t.installCodeServer (/home/xxx/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.39/out/extension.js:1:423710)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /home/xxx/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.39/out/extension.js:1:387702
It looks like the install script is written for bash. Any way to add support for tcsh?
Same issue.