Skip to content

Commit 8e106db

Browse files
committed
Calling exec for default shell in scw run
1 parent b791322 commit 8e106db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func runRun(cmd *types.Command, args []string) {
7575
// exec -w SERVER COMMAND ARGS...
7676
log.Debugf("Executing command")
7777
if len(args) < 2 {
78-
err = utils.SSHExec(server.PublicAddress.IP, []string{"if [ -x /bin/bash ]; then /bin/bash; else /bin/sh; fi"}, false)
78+
err = utils.SSHExec(server.PublicAddress.IP, []string{"if [ -x /bin/bash ]; then exec /bin/bash; else exec /bin/sh; fi"}, false)
7979
} else {
8080
err = utils.SSHExec(server.PublicAddress.IP, args[1:], false)
8181
}

0 commit comments

Comments
 (0)