Skip to content

Commit

Permalink
Auto-merge for PR #777 via VersionBot
Browse files Browse the repository at this point in the history
Add support for Balena in local ssh
  • Loading branch information
resin-io-versionbot[bot] committed Feb 6, 2018
2 parents 0fd1f04 + 5131f72 commit 20374fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).

## v6.13.0 - 2018-02-06

* Add support for Balena in local ssh #777 [Tim Perry]

## v6.12.9 - 2018-02-05

* Switch back to upstream global-tunnel-ng #781 [Alexis Svinartchouk]
Expand Down
3 changes: 2 additions & 1 deletion lib/actions/local/ssh.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ module.exports =

if not options.host
shellCmd = '''/bin/sh -c $"'if [ -e /bin/bash ]; then exec /bin/bash; else exec /bin/sh; fi'"'''
command += " docker exec -ti #{container} #{shellCmd}"
dockerCmd = "'$(if [ -f /usr/bin/balena ]; then echo \"balena\"; else echo \"docker\"; fi)'"
command += " #{dockerCmd} exec -ti #{container} #{shellCmd}"

subShellCommand = getSubShellCommand(command)
child_process.spawn subShellCommand.program, subShellCommand.args,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resin-cli",
"version": "6.12.9",
"version": "6.13.0",
"description": "The official resin.io CLI tool",
"main": "./build/actions/index.js",
"homepage": "https://github.com/resin-io/resin-cli",
Expand Down

0 comments on commit 20374fd

Please sign in to comment.