|
|
|
@ -5,7 +5,7 @@ set -euo pipefail
|
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
|
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
|
|
|
|
|
|
|
|
|
PROTOC_VERSION=${VERSION:-23.3}
|
|
|
|
|
PROTOC_VERSION=${VERSION:-24.3}
|
|
|
|
|
PROTOC_ZIP=protoc-$PROTOC_VERSION-linux-x86_64.zip
|
|
|
|
|
TMP_DIR=$(mktemp --directory)
|
|
|
|
|
DEST_FILE=$TMP_DIR/$PROTOC_ZIP
|
|
|
|
@ -18,5 +18,3 @@ sudo unzip -o "$DEST_FILE" -d /usr/local 'include/*'
|
|
|
|
|
sudo find /usr/local/include/google -type f -exec chmod 644 {} \;
|
|
|
|
|
sudo find /usr/local/include/google -type d -exec chmod 755 {} \;
|
|
|
|
|
rm -rfv "$TMP_DIR"
|
|
|
|
|
|
|
|
|
|
main "${@}"
|
|
|
|
|