Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit efd1a72

Browse files
authored
Fix entrypoint (#14)
For some reason, click thinks `cdc /bin/sh --help` is valid.
1 parent befcaf8 commit efd1a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ "${1:0:1}" = '-' ]; then
77
fi
88

99
# Check for a valid cdc subcommand
10-
if cdc "$1" --help > /dev/null 2>&1; then
10+
if [ "${1:0:1}" != '/' ] && cdc "$1" --help > /dev/null 2>&1; then
1111
set -- cdc "$@"
1212
fi
1313

0 commit comments

Comments
 (0)