use return not exit to avoid ending an ssh session
parent
dc6613ea0f
commit
b1e1065e4c
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
command -v docker >/dev/null 2>&1 || exit
|
||||
command -v docker >/dev/null 2>&1 || return
|
||||
|
||||
aws_docker () {
|
||||
local cred
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
command -v docker >/dev/null 2>&1 || exit
|
||||
command -v docker >/dev/null 2>&1 || return
|
||||
|
||||
alias bashly='docker run --rm -it --volume "$PWD:/app" dannyben/bashly'
|
||||
alias bashly-update='docker pull dannyben/bashly:latest'
|
||||
|
|
Reference in New Issue