/
dimamir
/
Wsdl_PackageGenerator
Обзор
Документация
Войти
/
dimamir
/
Wsdl_PackageGenerator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.github/docker-entrypoint.sh
23 строки
566 B
Mikaël DELSOL
issue #221 - update readme for Docker usage,
21 сен 2020, 22:15
21 сен 2020, 22:15
ac302b3
Код
Авторство
О чём код?
#!/bin/sh isCommand() { # Retain backwards compatibility with common CI providers, if [ "$1" = "sh" ]; then return 1 fi wsdltophp help "$1" > /dev/null 2>&1 } # check if the first argument passed in looks like a flag if [ "${1#-}" != "$1" ]; then set -- /usr/bin/tini -- wsdltophp "$@" # check if the first argument passed in is wsdltophp elif [ "$1" = 'wsdltophp' ]; then set -- /usr/bin/tini -- "$@" # check if the first argument passed in matches a known command elif isCommand "$1"; then set -- /usr/bin/tini -- wsdltophp "$@" fi exec "$@"