Skip to content

Commit 3523094

Browse files
committed
refactor(protolint): add fallback to latest version when previous version is not found
1 parent b7eff5a commit 3523094

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/protolint/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ install_from_github() {
3737
fi
3838

3939
latest_version=${versions[0]}
40-
prev_version=${versions[1]}
40+
prev_version=${versions[1]:-$latest_version}
4141

4242
echo "Downloading protolint v${latest_version}...."
4343

0 commit comments

Comments
 (0)