Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

How can I stop local env var expansion when using shipit.remote #152

Closed
vjpr opened this issue Mar 30, 2017 · 2 comments
Closed

How can I stop local env var expansion when using shipit.remote #152

vjpr opened this issue Mar 30, 2017 · 2 comments

Comments

@vjpr
Copy link

vjpr commented Mar 30, 2017

When I do the following:

await shipit.remote(`echo $PATH`)

it replaces $PATH with my local machine's $PATH.

Looked here but can't seem to fix it: http://stackoverflow.com/questions/13826149/how-have-both-local-and-remote-variable-inside-an-ssh-command

@vjpr
Copy link
Author

vjpr commented Mar 30, 2017

Workaround:

await shipit.remote('printenv PATH')

@gregberge
Copy link
Member

@vjpr you should escape your $, try echo \$PATH

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

No branches or pull requests

2 participants