"The system cannot find the path specified" on dep ssh <hostname> #3038
Unanswered
zihadt
asked this question in
Help needed
Replies: 1 comment 6 replies
-
What is your target OS? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting the following error on "dep ssh " command
After some digging I found out the issue occurs in the following line in SshCommand.php on line 89
passthru("ssh -t $options {$host->getConnectionString()} 'cd $deployPath/current 2>/dev/null || cd $deployPath; $shell_path'");
However if I use only one path in cd command, dep ssh works fine then. Otherwise the line outputs the above mentioned error.
passthru("ssh -t $options {$host->getConnectionString()} 'cd $deployPath/current; $shell_path'"); //this works
passthru("ssh -t $options {$host->getConnectionString()} 'cd $deployPath; $shell_path'"); //this also works
passthru("ssh -t $options {$host->getConnectionString()} 'cd $deployPath/current 2>/dev/null || cd $deployPath; $shell_path'"); //But this fails
passthru("ssh -t $options {$host->getConnectionString()} 'cd $deployPath/current 2>/dev/null; $shell_path'"); //this also fails
I was wondering what could be the reason for this weird behavior.
I am using git bash for Windows on a windows 11 Machine.
Deployer version 7.0.0 RC-4
Beta Was this translation helpful? Give feedback.
All reactions