Skip to content

Commit 6376e59

Browse files
authored
chore: Dockerfile - Simplify formatting SQL_ID (#162)
1 parent aa11834 commit 6376e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ARG SQLITE_VERSION="3.49.2"
9393
WORKDIR /src/sqlite
9494
RUN <<EOF
9595
# see product names and info at https://sqlite.org/download.html for why this line constructs the tarball name from a semver version
96-
SQL_ID="$(awk -F. '{print $1}' <<< "${SQLITE_VERSION}")$(printf "%02d" $(awk -F. '{print $2}' <<< "${SQLITE_VERSION}"))$(printf "%02d" $(awk -F. '{print $3}' <<< "${SQLITE_VERSION}"))00"
96+
SQL_ID="$(echo -n "${SQLITE_VERSION}" | xargs -d '.' printf '%d%02d%02d00')"
9797
curl -fsSL "https://www.sqlite.org/2025/sqlite-autoconf-${SQL_ID}.tar.gz" | tar -xz --strip-components=1
9898

9999
export CC="musl-gcc -fPIC -pie"

0 commit comments

Comments
 (0)