Skip to content

Commit 7b26f78

Browse files
committed
Strip vscode suffix from displayed latest version tag
- the line [Pasted text] should be: `The latest is 2026.1101.332`
1 parent 9fce08d commit 7b26f78

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎install.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ if (!$latestTag) {
134134
exit 1
135135
}
136136

137-
Write-Host "Found: $($latestTag.name)"
137+
Write-Host "The latest is $($latestTag.name -replace '-vscode$','')"
138138
$zipUrl = $latestTag.zipball_url
139139

140140
$tmpDir = Join-Path $env:TEMP ("CWC_Install_" + [Guid]::NewGuid().ToString().Substring(0,8))

‎install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ if [ -z "$ZIP_URL" ]; then
158158
exit 1
159159
fi
160160

161-
echo "Found: $TAG_NAME"
161+
echo "The latest is ${TAG_NAME%-vscode}"
162162
echo "Downloading source code..."
163163
curl -sL "$ZIP_URL" -o "$TMP_DIR/source.zip"
164164

0 commit comments

Comments
 (0)