Skip to content

Commit a4bd422

Browse files
committed
Fix bug with bg_block not calling bg_init
1 parent 8cbde74 commit a4bd422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bgpid.sh

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ bg_killall() {
3131

3232
# shellcheck disable=2120
3333
bg_block() {
34+
bg_init || return $?
3435
local lvl=${1:-0}
3536
[[ $lvl -ne -1 ]] || return 0
3637
local ret=0

0 commit comments

Comments
 (0)