Skip to content

Commit

Permalink
Eliminates misuse of connection.exec API
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyman727 committed Feb 17, 2016
1 parent bb6fa0b commit 4873143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tessel/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Tessel.prototype.setName = function(name) {
})
.then(() => {
// Write the new name to the kernel hostname as well (so it reports the proper name in the terminal)
return this.connection.exec(commands.openStdinToFile('/proc/sys/kernel/hostname'), (err, remoteProc) => {
this.connection.exec(commands.openStdinToFile('/proc/sys/kernel/hostname'), (err, remoteProc) => {
if (err) {
return reject(err);
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/tessel/provision.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function checkIfKeyInFile(tessel, authFile, pubKey) {
function copyKey(tessel, authFile, pubKey) {
return new Promise(function(resolve, reject) {
// Open up stdin to the authorized_keys file
return tessel.connection.exec(commands.appendStdinToFile(authFile), (err, remoteProcess) => {
tessel.connection.exec(commands.appendStdinToFile(authFile), (err, remoteProcess) => {
if (err) {
return reject(err);
}
Expand Down

0 comments on commit 4873143

Please sign in to comment.