From 662cf33baaceb0161a0957727df9a1bbcc359f29 Mon Sep 17 00:00:00 2001 From: Curculigo Date: Sat, 6 Dec 2025 21:01:08 +0700 Subject: [PATCH] Update patch_commit_number.sh (#150) Fix an edge case when `OSTYPE` is in mixed case. --- projects/scripts/patch_commit_number.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/scripts/patch_commit_number.sh b/projects/scripts/patch_commit_number.sh index 2079c0987..60d8b7d36 100644 --- a/projects/scripts/patch_commit_number.sh +++ b/projects/scripts/patch_commit_number.sh @@ -6,7 +6,7 @@ COMMIT_NUMBER=$(git rev-list "$(git tag --sort=-creatordate | grep ecode | sed - FILE_PATH="../../src/tools/ecode/version.hpp" -case "$OSTYPE" in +case "$(echo "$OSTYPE" | tr 'A-Z' 'a-z')" in darwin*) perl -i -pe "s/#define ECODE_COMMIT_NUMBER [0-9]+/#define ECODE_COMMIT_NUMBER $COMMIT_NUMBER/" "$FILE_PATH" ;;