use return not exit to avoid ending an ssh session

master
Kebler Network System Administrator 2021-04-19 17:26:32 -07:00
parent dc6613ea0f
commit b1e1065e4c
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
command -v docker >/dev/null 2>&1 || exit command -v docker >/dev/null 2>&1 || return
aws_docker () { aws_docker () {
local cred local cred

View File

@ -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='docker run --rm -it --volume "$PWD:/app" dannyben/bashly'
alias bashly-update='docker pull dannyben/bashly:latest' alias bashly-update='docker pull dannyben/bashly:latest'