Skip to content

Commit

Permalink
! update after release v2.5.2/v2.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Feb 18, 2024
1 parent 1aa76a6 commit c678e28
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<a href="https://github.com/oldratlee/useful-scripts/actions/workflows/ci.yaml"><img src="https://img.shields.io/github/actions/workflow/status/oldratlee/useful-scripts/ci.yaml?branch=dev-2.x&logo=github&logoColor=white" alt="Github Workflow Build Status"></a>
<a href="https://github.com/oldratlee/useful-scripts/releases"><img src="https://img.shields.io/github/release/oldratlee/useful-scripts.svg" alt="GitHub release"></a>
<a href="https://www.apache.org/licenses/LICENSE-2.0.html"><img src="https://img.shields.io/github/license/oldratlee/useful-scripts?color=4D7A97&logo=apache" alt="License"></a>
<a href="https://github.com/oldratlee/useful-scripts/stargazers"><img src="https://img.shields.io/github/stars/oldratlee/useful-scripts" alt="GitHub Stars"></a>
<a href="https://github.com/oldratlee/useful-scripts/fork"><img src="https://img.shields.io/github/forks/oldratlee/useful-scripts" alt="GitHub Forks"></a>
<a href="https://github.com/oldratlee/useful-scripts/stargazers"><img src="https://img.shields.io/github/stars/oldratlee/useful-scripts?style=flat" alt="GitHub Stars"></a>
<a href="https://github.com/oldratlee/useful-scripts/fork"><img src="https://img.shields.io/github/forks/oldratlee/useful-scripts?style=flat" alt="GitHub Forks"></a>
<a href="https://github.com/oldratlee/useful-scripts/issues"><img src="https://img.shields.io/github/issues/oldratlee/useful-scripts" alt="GitHub issues"></a>
<a href="https://github.com/oldratlee/useful-scripts/graphs/contributors"><img src="https://img.shields.io/github/contributors/oldratlee/useful-scripts" alt="GitHub Contributors"></a>
<a href="https://github.com/oldratlee/useful-scripts"><img src="https://img.shields.io/github/repo-size/oldratlee/useful-scripts" alt="GitHub repo size"></a>
Expand Down Expand Up @@ -142,10 +142,10 @@ PS:
`Shell``Bash`的原因是:

- 目前仍然是主流的`Shell`,并且在不同环境基本上都缺省部署了。
-[`Google``Shell`风格指南](https://zh-google-styleguide.readthedocs.io/en/latest/google-shell-styleguide/background/)中,明确说明了:`Bash`**唯一**被允许执行的`shell`脚本语言。
-[`Google``Shell`风格指南](https://zh-google-styleguide.readthedocs.io/en/latest/google-shell-styleguide/background/)中,明确说到了:`Bash`**唯一**被允许执行的`shell`脚本语言。
- 统一用`Bash`,可以避免差异带来的风险与没有收益的复杂性。
- 有大量的`Shell`实现,`sh``bash``zsh``fish``csh``tcsh``ksh``ash``dash`……
- 不同的`Shell`有各种差异,深坑勿入。
- 统一用`Bash`,可以避免差异带来的风险与没有收益的复杂性。
- 个人系统学习过的是`Bash`,比较理解熟悉。

PS: 虽然交互`Shell`个人已经使用`Zsh` + [`oh-my-zsh`](https://ohmyz.sh/),但在严谨的`Shell`脚本开发时还是使用`Bash`
Expand Down
2 changes: 1 addition & 1 deletion bin/a2l
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set -eEuo pipefail
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion bin/ap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -eEuo pipefail
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion bin/c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set -eEuo pipefail
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion bin/cp-into-docker-run
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -eEuo pipefail

PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion bin/find-in-jars
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ set -eEuo pipefail
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion bin/rp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -eEuo pipefail
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion bin/show-busy-java-threads
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'
# choosing between $0 and BASH_SOURCE
# https://stackoverflow.com/a/35006505/922688
# How can I get the source directory of a Bash script from within the script itself?
Expand Down
2 changes: 1 addition & 1 deletion bin/show-duplicate-java-classes
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ from zipfile import ZipFile, BadZipfile
################################################################################
# utils functions
################################################################################
PROG_VERSION = '2.6.0-dev'
PROG_VERSION = '2.x-dev'

# How to delete line with echo?
# https://unix.stackexchange.com/questions/26576
Expand Down
2 changes: 1 addition & 1 deletion bin/tcp-connection-state-counter
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set -eEuo pipefail
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion bin/uq
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ set -eEuo pipefail
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion bin/xpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set -eEuo pipefail
# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG=$(basename -- "$0")
readonly PROG
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

################################################################################
# util functions
Expand Down
2 changes: 1 addition & 1 deletion legacy-bin/cp-svn-url
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# NOTE: DO NOT declare var PROG as readonly in ONE line!
PROG="$(basename -- "$0")"
readonly PROG_VERSION='2.6.0-dev'
readonly PROG_VERSION='2.x-dev'

usage() {
cat <<EOF
Expand Down

0 comments on commit c678e28

Please sign in to comment.