Skip to content

Commit

Permalink
Merge pull request #111 from kelbyers/main
Browse files Browse the repository at this point in the history
`bin/d-attach` defines function `da` but calls function `dattach`
  • Loading branch information
unixorn authored Nov 1, 2024
2 parents be64fe5 + 5f204b5 commit 06e2946
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/d-attach
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function debug() {
}

function fail() {
printf '%s\n' "$1" >&2 ## Send message to stderr. Exclude >&2 if you don't want it that way.
exit "${2-1}" ## Return a code specified by $2 or 1 by default.
printf '%s\n' "$1" >&2 ## Send message to stderr. Exclude >&2 if you don't want it that way.
exit "${2-1}" ## Return a code specified by $2 or 1 by default.
}

function has() {
Expand All @@ -33,7 +33,7 @@ function da() {
}

if has docker; then
dattach "$@"
da "$@"
else
"Cannot find docker in $PATH"
fi
fi

0 comments on commit 06e2946

Please sign in to comment.