-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use protocPlugins "none" default
- Loading branch information
Showing
2 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,19 @@ source scripts/executor-info.sh | |
|
||
BUF_VERSION=$1 | ||
|
||
IFS=" " read -r -a PROTOC_PLUGINS <<< "$2" | ||
for part in "${PROTOC_PLUGINS[@]}"; do | ||
IFS="@" read -r -a langAndVersion <<< "$part" | ||
if [ "$2" != "none" ]; then | ||
IFS=" " read -r -a PROTOC_PLUGINS <<<"$2" | ||
for part in "${PROTOC_PLUGINS[@]}"; do | ||
IFS="@" read -r -a langAndVersion <<<"$part" | ||
|
||
if [ "${#langAndVersion[@]}" != 2 ]; then | ||
echo "Malformed plugin specifier \"$part\", expected e.g. [email protected]" | ||
exit 1 | ||
fi | ||
if [ "${#langAndVersion[@]}" != 2 ]; then | ||
echo "Malformed plugin specifier \"$part\", expected e.g. [email protected]" | ||
exit 1 | ||
fi | ||
|
||
bash "scripts/install-${langAndVersion[0]}-plugin.sh" "${langAndVersion[1]}" | ||
done | ||
bash "scripts/install-${langAndVersion[0]}-plugin.sh" "${langAndVersion[1]}" | ||
done | ||
fi | ||
|
||
if [ ! -f ".bin/buf" ]; then | ||
echo "Installing buf $BUF_VERSION for OS $UNAME_OS Arch $UNAME_ARCH" | ||
|