File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 6161 # This is a bit kludgy, but necessary as the container uses BusyBox/ash as
6262 # it's shell and not bash which would allow a much cleaner implementation
6363 for var in $( env | grep " ^PGADMIN_CONFIG_" | cut -d " =" -f 1) ; do
64- # shellcheck disable=SC2086
65- # shellcheck disable=SC2046
66- echo ${var# PGADMIN_CONFIG_} = $( eval " echo \$ $var " ) >> " ${CONFIG_DISTRO_FILE_PATH} "
64+ # Get the raw value
65+ val=$( eval " echo \"\$ $var \" " )
66+ # This normalization step is what makes 'true', 'True', and 1 all work
67+ case " $( echo " $val " | tr ' [:upper:]' ' [:lower:]' ) " in
68+ true|1) val=" True" ;;
69+ false|0) val=" False" ;;
70+ esac
71+ echo " ${var# PGADMIN_CONFIG_} = $val " >> " ${CONFIG_DISTRO_FILE_PATH} "
6772 done
6873fi
6974
You can’t perform that action at this time.
0 commit comments