Skip to content

Commit

Permalink
daemon: Automatically prepend the binary name when the first arg is a…
Browse files Browse the repository at this point in the history
… flag
  • Loading branch information
TimWolla committed Mar 14, 2024
1 parent 4984dd3 commit 6c93606
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -e

# Check if the first argument starts with a hyphen
# and prepend the binary name.
if [ "${1#-}" != "$1" ]; then
set -- tideways-daemon "$@"
fi

if [ "$#" -eq 1 ] && [ "$1" = "tideways-daemon" ]; then
TIDEWAYS_DAEMON_EXTRA=

Expand Down

0 comments on commit 6c93606

Please sign in to comment.