Skip to content

Commit c5f892f

Browse files
committed
entrypoint: Warn on unknown type when adding setting.
1 parent f2e9a3b commit c5f892f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ setConfigurationValue() {
140140
bool | integer | array)
141141
VALUE="$KEY = $2"
142142
;;
143-
string | *)
143+
string)
144+
VALUE="$KEY = '${2//\'/\'}'"
145+
;;
146+
*)
147+
echo "WARNING: Unknown type '$TYPE' for '$KEY' -- treating as string." >&2
144148
VALUE="$KEY = '${2//\'/\'}'"
145149
;;
146150
esac

0 commit comments

Comments
 (0)