Skip to content

Commit 8e94999

Browse files
sachilleskkimurak
andcommitted
Remove leading zero in DB_SERVER_VERSION
Apply suggestion from @kkimurak. Co-authored-by: KIMURA Kazunori <33391846+kkimurak@users.noreply.github.com>
1 parent 0d73691 commit 8e94999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ gitlab_generate_postgresqlrc() {
191191
echo "- Detected server version: ${DB_SERVER_VERSION}"
192192

193193
# remove leading zero (prior to 10.x it was like "090605" so that cannot treated as number)
194-
DB_SERVER_VERSION="${DB_SERVER_VERSION##+(0)}"
194+
DB_SERVER_VERSION="${DB_SERVER_VERSION#0}"
195195

196196
# Anyway, we can get major version (8, 9, 10 and so on) by dividing by 10000.
197197
# DB_SERVER_VERSION_MAJOR=${DB_SERVER_VERSION%%.*}

0 commit comments

Comments
 (0)