Skip to content

Commit 4bbe54f

Browse files
committed
bump to v20251118
- improved `repl_bashsh_block`
1 parent 1a3cd9f commit 4bbe54f

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# HISTORY
22

3+
- v20251118
4+
- improved `repl_bashsh_block`
5+
36
- v20251117
47
- update `simple-entry.sh`
58
- fix `repl_bashsh_block`

bash-lite.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# bash.sh:
1010
# Standard Template for bash/zsh developing.
11-
# Version: v20251117
11+
# Version: v20251118
1212
# License: MIT
1313
# Site: https://github/hedzr/bash.sh
1414
#
@@ -106,7 +106,7 @@ _my_main_do_sth() {
106106

107107
########################################################
108108

109-
#### HZ Tail BEGIN #### v20251117 ####
109+
#### HZ Tail BEGIN #### v20251118 ####
110110
in_debug() { (($DEBUG)); }
111111
in_provisioning() { (($PROVISIONING)); } ## return exit status as true if $PROVISIONING is not equal to 0
112112
is_root() { [ "$(id -u)" = "0" ]; }
@@ -739,7 +739,7 @@ main_do_sth() {
739739
fi
740740
((${HAS_END:-0})) && { debug_begin && echo -n 'Success!' && debug_end; } || return $res_ # { [ $# -eq 0 ] && :; }
741741
}
742-
BASH_SH_VERSION=v20251117
742+
BASH_SH_VERSION=v20251118
743743
DEBUG=${DEBUG:-0}
744744
# trans_readlink() { DIR="${1%/*}" && (cd $DIR && pwd -P); }
745745
# is_darwin && realpathx() { [[ $1 == /* ]] && echo "$1" || { DIR="${1%/*}" && DIR=$(cd $DIR && pwd -P) && echo "$DIR/$(basename $1)"; }; } || realpathx() { readlink -f $*; }
@@ -749,4 +749,4 @@ in_sourcing && {
749749
if_vagrant && [ "$SCRIPT" == "/tmp/vagrant-shell" ] && { [ -d $CD/ops.d ] || CD=/vagrant/bin; }
750750
[ -L "$SCRIPT" ] && debug linked script found && SCRIPT=$(realpathx "$SCRIPT") && CD=$(dirname "$SCRIPT")
751751
in_sourcing || main_do_sth "$@"
752-
#### HZ Tail END #### v20251117 ####
752+
#### HZ Tail END #### v20251118 ####

bash.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# bash.sh:
1010
# Standard Template for bash/zsh developing.
11-
# Version: v20251117
11+
# Version: v20251118
1212
# License: MIT
1313
# Site: https://github.com/hedzr/bash.sh
1414
#
@@ -304,7 +304,7 @@ repl_bashsh_block() {
304304

305305
########################################################
306306

307-
#### HZ Tail BEGIN #### v20251117 ####
307+
#### HZ Tail BEGIN #### v20251118 ####
308308
in_debug() { (($DEBUG)); }
309309
in_provisioning() { (($PROVISIONING)); } ## return exit status as true if $PROVISIONING is not equal to 0
310310
is_root() { [ "$(id -u)" = "0" ]; }
@@ -1399,7 +1399,7 @@ main_do_sth() {
13991399
# disabling this logic is still simple by defining HAS_END=1.
14001400
((${HAS_END:-0})) && { debug_begin && echo -n 'Success!' && debug_end; } || return $result_code # { [ $# -eq 0 ] && :; }
14011401
}
1402-
BASH_SH_VERSION=v20251117
1402+
BASH_SH_VERSION=v20251118
14031403
DEBUG=${DEBUG:-0}
14041404
PROVISIONING=${PROVISIONING:-0}
14051405
SUDO=sudo && [ "$(id -u)" = "0" ] && SUDO= || :
@@ -1430,4 +1430,4 @@ path_in_orb_host "$0" && : || { [ -L "$SCRIPT" ] && debug "$(safety "linked scri
14301430
# CD=$(cd `dirname "$0"`;pwd)
14311431
# It will open a sub-shell to print the folder name of the running shell-script.
14321432
in_sourcing && _bash_sh_load_import_files || main_do_sth "$@"
1433-
#### HZ Tail END #### v20251117 ####
1433+
#### HZ Tail END #### v20251118 ####

simple-entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ if_sysv() { [[ -f /etc/init.d/cron && ! -L /etc/init.d/cron ]]; }
9797
# It will open a sub-shell to print the folder name of the running shell-script.
9898

9999
###
100-
CD="$(cd $(dirname "$0") && pwd)" && BASH_SH_VERSION=v20251117 && DEBUG=${DEBUG:-0} && PROVISIONING=${PROVISIONING:-0}
100+
CD="$(cd $(dirname "$0") && pwd)" && BASH_SH_VERSION=v20251118 && DEBUG=${DEBUG:-0} && PROVISIONING=${PROVISIONING:-0}
101101
SUDO=sudo && { [ "$(id -u)" = "0" ] && SUDO= || :; }
102102
LS_OPT="--color" && { is_darwin && LS_OPT="-G" || :; }
103103
(($#)) && {

0 commit comments

Comments
 (0)