Skip to content

Commit

Permalink
Merge pull request #121 from TS3Tools/Fix-issue-with-detecting-curren…
Browse files Browse the repository at this point in the history
…t-version

Fix `grep: docs/CHANGELOG.md: No such file or directory`
  • Loading branch information
Sebbo94BY committed Jan 22, 2023
2 parents 0d59057 + 77b537b commit 03b9f17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TS3UpdateScript
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function testInternetConnectivity() {
# Get current script version
# Return: CurrentScriptVersion:string or 1:boolean
function getCurrentScriptVersion() {
CURRENT_SCRIPT_VERSION="$(grep Version docs/CHANGELOG.md | head -1 | cut -d ' ' -f 3 | tr -d '[[:space:]]')"
CURRENT_SCRIPT_VERSION="$(grep Version ${ABSOLUTE_PATH}/docs/CHANGELOG.md | head -1 | cut -d ' ' -f 3 | tr -d '[[:space:]]')"

if [[ -n "$CURRENT_SCRIPT_VERSION" ]]; then
echo -n "$CURRENT_SCRIPT_VERSION";
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Hotfix | Important fix for one more issues, which causes a not (correct) working

## Releases

### Version 6.0.4 (2023-01-22)

* Fix `grep: docs/CHANGELOG.md: No such file or directory`

### Version 6.0.3 (2022-12-02)

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

0 comments on commit 03b9f17

Please sign in to comment.