Releases: brlin-tw/GNU-Bash-Shell-Script-Template
Releases · brlin-tw/GNU-Bash-Shell-Script-Template
v1.24.0
v1.23.0
v1.22.2: Fix end-of-program line not printed error
OR-list and AND-list is NOT a same command and can not be mixed like one, currently: ```bash if meta_util_is_parameter_set_and_not_null META_APPLICATION_NAME\ || meta_util_is_parameter_set_and_not_null META_APPLICATION_DEVELOPER_NAME\ || meta_util_is_parameter_set_and_not_null META_APPLICATION_SITE_URL\ || meta_util_is_parameter_set_and_not_null META_PROGRAM_LICENSE\ || meta_util_is_parameter_set_and_not_null META_PROGRAM_PAUSE_BEFORE_EXIT\ && [ "${META_PROGRAM_PAUSE_BEFORE_EXIT}" -eq 1 ]; then printf -- "------------------------------------\n" fi ``` First, lists are left-associative and have no precedence difference between AND-list and OR-list. Don't mistaken it with the logical AND OR operator in BASHDOC:Basic Shell Features » Shell Commands » Compound Commands » Conditional Constructs The previous OR-list turned ENTIRELY into TRUE(0) after any of it member resolves to TRUE(0), destroying the `meta_util_is_parameter_set_and_not_null META_PROGRAM_PAUSE_BEFORE_EXIT` and directory compares to the next AND-list member [ "${META_PROGRAM_PAUSE_BEFORE_EXIT}" -eq 1 ], so the line will be printed ONLY when META_PROGRAM_PAUSE_BEFORE_EXIT is not null and expands to "1". This commit fixes the issue by using command grouping (BASHDOC:Basic Shell Features » Shell Commands » Compound Commands » Grouping Commands), which groups the: ``` meta_util_is_parameter_set_and_not_null META_PROGRAM_PAUSE_BEFORE_EXIT\ && [ "${META_PROGRAM_PAUSE_BEFORE_EXIT}" -eq 1 ] ``` and list part so it can become a member of the OR-list, fixes the logic Signed-off-by: 林博仁 <[email protected]>
第 1.22.1 版 GNU Bash Shell Script 範本釋出囉! / GNU Bash Shell Script Template v1.22.1 Released!
一言以蔽之
In short...
這個版本修正了自第 1.20.0 版所引入的新軟體缺陷(regression),會造成完整版腳本使用者執行時出現
<script filename>: line 199: META_PROGRAM_PAUSE_BEFORE_EXIT: unbound variable
的問題
自 1.21.0 版以來的詳細變更紀錄
Changelog since v1.21.0
v1.21.0: 專案介紹文件 - Travis CI - 我們 <3 徽章
Signed-off-by: 林博仁 <[email protected]>
v1.20.1
Featuring
This release mainly implements coding style enforcing policy, during check-in process the scripts will be passed through bashbeautify
to enforce unified coding style, refer commit d05d6fd for implementation details
Also start from this release the main script is officially conforming to a specific Flexible-Software-Installation-Specification version, you may acquire the conformance information at the end of the script like the following:
## This script is comforming to Flexible Software Installation Specification
## https://github.com/Lin-Buo-Ren/Flexible-Software-Installation-Specification
## and is based on the following version: v1.2.0
Detailed commit history since the last release
- 59aba63 - (HEAD -> master, tag: v1.20.1, GitHub/master) setup-development-environment - 不使用 --depth git-submodule 參數,試圖迴避無法取出子模組的問題 (19 minutes ago) <林博仁>
- 948903f - (tag: v1.20.0) 遵從彈性化軟體安裝規範 v1.2.0 - 2 - 加上遵從版本描述文字 (64 minutes ago) <林博仁>
- d05d6fd - 引入程式碼風格強制要求 (75 minutes ago) <林博仁>
- 59bfbca - 撰寫貢獻須知 (2 days ago) <林博仁>
- a7a12e6 - 修正 meta_util_printSingleCommandlineOptionHelp 偵測有無 current_value 方式錯誤的問題 (2 days ago) <林博仁>
- ab0323a - Unset all null META_PROGRAM_* parameters and readonly all others (2 days ago) <林博仁>
- fdcbcb7 - 遵從彈性化軟體安裝規範 v1.2.0 (2 days ago) <林博仁>
- bd0e8bd - 修正錯誤的陷阱函式名 (2 days ago) <林博仁>
v1.20.0
遵從彈性化軟體安裝規範 v1.2.0 - 2 - 加上遵從版本描述文字 Signed-off-by: 林博仁 <[email protected]>
v1.19.1
meta_printHelpMessage - commandline options are not required Signed-off-by: 林博仁 <[email protected]>
v1.19.0
根據新版本的「彈性化軟體安裝規範」替換變數名稱 Signed-off-by: 林博仁 <[email protected]>
v1.18.0
Refer https://github.com/Lin-Buo-Ren/GNU-Bash-Shell-Script-Template/wiki/Automatic-Template-Version-Injection for more information about this feature.