@renault-digital/bash-base 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/bash-base +1 -1
- package/docs/references.md +1 -1
- package/man/bash-base.1 +1 -1
- package/package.json +3 -5
- package/spec/process.spec.sh +4 -1
- package/src/tool.sh +1 -1
package/bin/bash-base
CHANGED
|
@@ -1654,7 +1654,7 @@ function confirm_to_continue() {
|
|
|
1654
1654
|
# @EXAMPLES
|
|
1655
1655
|
# wait_for 'test -f /tmp/output.txt' 'file existed' 3
|
|
1656
1656
|
# @SEE_ALSO
|
|
1657
|
-
# confirm_to_continue, stop_if_failed
|
|
1657
|
+
# confirm_to_continue, stop_if_failed
|
|
1658
1658
|
function wait_for() {
|
|
1659
1659
|
local predicate="${1}"
|
|
1660
1660
|
local subject="${2-${predicate}}"
|
package/docs/references.md
CHANGED
package/man/bash-base.1
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renault-digital/bash-base",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "A common lib for creating bash script easily.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"test": "spec"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"preinstall": "npx npm-force-resolutions || true",
|
|
31
30
|
"shellcheck": "docker run --rm -v \"$(pwd)\":/bash-base -w /bash-base koalaman/shellcheck:latest src/*.sh scripts/*.sh example/*.sh",
|
|
32
31
|
"shfmt": "docker run --rm -v \"$(pwd)\":/bash-base -w /bash-base mvdan/shfmt -l -w src/*.sh scripts/*.sh example/*.sh",
|
|
33
32
|
"lint:commit": " commitlint --from=$(git rev-list --max-parents=0 HEAD)",
|
|
@@ -66,7 +65,6 @@
|
|
|
66
65
|
"cz-conventional-changelog": "^3.3.0",
|
|
67
66
|
"husky": "^9.1.7",
|
|
68
67
|
"merge": ">=2.1.1",
|
|
69
|
-
"semantic-release": "^
|
|
70
|
-
}
|
|
71
|
-
"resolutions": {}
|
|
68
|
+
"semantic-release": "^24.2.9"
|
|
69
|
+
}
|
|
72
70
|
}
|
package/spec/process.spec.sh
CHANGED
|
@@ -8,7 +8,10 @@ AfterRun preserve
|
|
|
8
8
|
|
|
9
9
|
Describe 'prc_filter_by_port'
|
|
10
10
|
It 'with port number'
|
|
11
|
-
nc -
|
|
11
|
+
nc -lk 127.0.0.1 9999 &
|
|
12
|
+
sleep 1
|
|
13
|
+
echo "=== Debug: check listener ==="
|
|
14
|
+
lsof -iTCP:9999 -sTCP:LISTEN -n -P
|
|
12
15
|
When call prc_filter_by_port 9999
|
|
13
16
|
The status should be success
|
|
14
17
|
The output should include ":9999"
|
package/src/tool.sh
CHANGED
|
@@ -64,7 +64,7 @@ function confirm_to_continue() {
|
|
|
64
64
|
# @EXAMPLES
|
|
65
65
|
# wait_for 'test -f /tmp/output.txt' 'file existed' 3
|
|
66
66
|
# @SEE_ALSO
|
|
67
|
-
# confirm_to_continue, stop_if_failed
|
|
67
|
+
# confirm_to_continue, stop_if_failed
|
|
68
68
|
function wait_for() {
|
|
69
69
|
local predicate="${1}"
|
|
70
70
|
local subject="${2-${predicate}}"
|