Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get agent path from environment variable #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gt945
Copy link

@gt945 gt945 commented Jun 22, 2019

Fixes #29
Signed-off-by: Tao Guo [email protected]

@gt945
Copy link
Author

gt945 commented Jul 15, 2019

@liximomo can you review this pull request?

@@ -39,6 +39,15 @@ export default class SFTPFSProvider extends RemoteFileSystemProvider {
password == undefined && remote.agent == undefined && remote.privateKeyPath == undefined;
// tslint:enable

if (remote.agent != undefined && remote.agent.startsWith('$')) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should check whether remote.agent is a string. There will be a runtime error if it's not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get agent from environment
2 participants