protobuf/protoc-artifacts/scl-enable-devtoolset.sh
Eric Anderson cdbfdd8da8 protoc-artifacts: Use ENTRYPOINT to enable devtoolset-1.1
ENTRYPOINT is used even when other commands are specified on the "docker
run" command line. This allows running one-off commands in the docker
image (especially combined with volume binding with the host) with the
correct environment variables.
2018-03-28 17:24:07 -07:00

14 lines
213 B
Bash
Executable File

#!/bin/bash
set -eu -o pipefail
quote() {
local arg
for arg in "$@"; do
printf "'"
printf "%s" "$arg" | sed -e "s/'/'\\\\''/g"
printf "' "
done
}
exec scl enable devtoolset-1.1 "$(quote "$@")"