We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ce09e commit aca2342Copy full SHA for aca2342
1 file changed
docker-entrypoint.sh
@@ -20,8 +20,15 @@ UPLOAD_MAX_FILESIZE="${UPLOAD_MAX_FILESIZE:-8M}"
20
# Useful for comparing (and fixing) changes, if necessary.
21
DEBUG="TRUE"
22
23
+# Read Current LLC Version
24
+# When version.json has CR/LF, it fx up, so have to add tr to remove the line endings.
25
+v="$(cat /htdocs/version.json | tr -d '\r\n')"
26
+
27
+# Calc length of whitespace we need, based on version length.
28
+vlen="$((27-${#v}))"
29
30
echo '+ ------------------------------------------------------------------ +'
-echo '| LITTLELINK CUSTOM |'
31
+printf '| LITTLELINK CUSTOM v%s%*s|\n' "${v}" "$vlen" | tr ' ' " "
32
33
# + ---------------- + #
34
# | -- HTTPD.CONF -- | #
0 commit comments