diff options
| author | levlam <levlam@telegram.org> | 2025-05-12 11:36:27 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-05-12 11:36:27 +0300 |
| commit | fe2f2f1d54d44e9a59c4421bf676ee21c3445286 (patch) | |
| tree | 65672ccca93ab3673e8e69dafa9e9c86074d8439 /update_version.sh | |
| parent | 361bee8aa657df75d4934ded823821fb8aa12bfa (diff) | |
Improve 'list of' usage.
Diffstat (limited to 'update_version.sh')
| -rwxr-xr-x | update_version.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update_version.sh b/update_version.sh index a84c79b9f..b69074aa1 100755 --- a/update_version.sh +++ b/update_version.sh @@ -3,10 +3,10 @@ cd $(dirname $0) COMMIT_FILES="example/cpp/CMakeLists.txt example/uwp/extension.vsixmanifest example/uwp/Telegram.Td.UWP.nuspec example/web/tdweb/package.json example/web/tdweb/package-lock.json README.md td/telegram/OptionManager.cpp" -# check argument '-i' to drop all fixed files list. +# check argument '-i' to drop the fixed list of files to commit for arg in "$@"; do if [[ "$arg" == "-i" ]]; then COMMIT_FILES=""; break; fi; done -# 'git diff' to ensure that 'CMakeLists.txt' is modified. +# 'git diff' to ensure that 'CMakeLists.txt' is modified GIT_DIFF=$(git --no-pager diff --unified=0 CMakeLists.txt) SED_REGEX="project\(TDLib VERSION ([0-9\.]+) LANGUAGES CXX C\)" |
