File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- echo " [II] qnib/init-plain script v0.4.20"
2+ QUIET=${QUIET_ENTRYPOINT:- false}
3+ function qecho() {
4+ if [[ " X${QUIET} " != " Xtrue" ]]; then
5+ echo $@
6+ fi
7+ }
8+ qecho " [II] qnib/init-plain script v0.4.20"
39set -e
410
511if [[ -z ${SKIP_ENTRYPOINTS} ]]; then
612 for x in $( find ${ENTRYPOINTS_DIR:-/ opt/ qnib/ entry/ } -type f -perm /u+x | sort) ; do
7- echo " > execute entrypoint '${x} '"
13+ qecho " > execute entrypoint '${x} '"
814 if [[ " $x " == * .env ]]; then
915 source ${x}
1016 else
@@ -14,9 +20,9 @@ if [[ -z ${SKIP_ENTRYPOINTS} ]];then
1420fi
1521
1622if [ " X${ENTRY_USER} " != " X" ]; then
17- echo " > execute CMD as user '${ENTRY_USER} '"
23+ qecho " > execute CMD as user '${ENTRY_USER} '"
1824 exec gosu ${ENTRY_USER} /bin/bash -c " $@ "
1925else
20- echo " > execute CMD '$@ '"
26+ qecho " > execute CMD '$@ '"
2127 exec " $@ "
2228fi
You can’t perform that action at this time.
0 commit comments