Skip to content
This repository was archived by the owner on Aug 19, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkg/docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
#!/bin/bash
set -e

# This docker image supports sending either a flag or a command as the docker
# command. When a flag is sent, it will be passed on to the metadata agent
# command. When a flag is sent, it will be passed on to the metadata agent
# process. Anything else will be interpreted as the command to be run.
#
# Passing a flag.
Expand All @@ -14,6 +14,7 @@ set -e
# Default behavior uses CMD defined in Dockerfile.
# $ docker run -it {image:tag}

# Note: substring substitution is a bash-ism.
if [ "${1:0:1}" = '-' ]; then
set -- /opt/stackdriver/metadata/sbin/metadatad "$@"
fi
Expand Down