Skip to content

Commit

Permalink
fix: bug with sudo on interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
markwylde committed Aug 31, 2023
1 parent b103697 commit 4293938
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/utils/createSshConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export async function createSshConnection({ host, username, port = 22, privateKe

if (sudo) {
stream.write('sudo echo "Entering sudo password"\n');
stream.write(server.users[0].password + '\n');
stream.write(password + '\n');
}

stream.pipe(process.stdout);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deploysteps/core",
"version": "1.12.0",
"version": "1.12.1",
"private": false,
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 4293938

Please sign in to comment.