Skip to content

Commit 03b9f17

Browse files
authored
Merge pull request #121 from TS3Tools/Fix-issue-with-detecting-current-version
Fix `grep: docs/CHANGELOG.md: No such file or directory`
2 parents 0d59057 + 77b537b commit 03b9f17

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

TS3UpdateScript

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function testInternetConnectivity() {
263263
# Get current script version
264264
# Return: CurrentScriptVersion:string or 1:boolean
265265
function getCurrentScriptVersion() {
266-
CURRENT_SCRIPT_VERSION="$(grep Version docs/CHANGELOG.md | head -1 | cut -d ' ' -f 3 | tr -d '[[:space:]]')"
266+
CURRENT_SCRIPT_VERSION="$(grep Version ${ABSOLUTE_PATH}/docs/CHANGELOG.md | head -1 | cut -d ' ' -f 3 | tr -d '[[:space:]]')"
267267

268268
if [[ -n "$CURRENT_SCRIPT_VERSION" ]]; then
269269
echo -n "$CURRENT_SCRIPT_VERSION";

docs/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Hotfix | Important fix for one more issues, which causes a not (correct) working
2323

2424
## Releases
2525

26+
### Version 6.0.4 (2023-01-22)
27+
28+
* Fix `grep: docs/CHANGELOG.md: No such file or directory`
29+
2630
### Version 6.0.3 (2022-12-02)
2731

2832
* Issue #118: Fix gathering of ServerQuery IP and port when unexpected characters are included

0 commit comments

Comments
 (0)