build-deploy.sh: chmod, and follow redirect
Change-Id: I3b3b5a0361313e0577abee6a5cde5e7be59b40e0
diff --git a/build-deploy.sh b/build-deploy.sh
index 2749c69..adacfc3 100644
--- a/build-deploy.sh
+++ b/build-deploy.sh
@@ -14,7 +14,7 @@
go build -o ${dest}/gerrit-linter ./cmd/checker
if [[ ! -f google-java-format.jar ]] ; then
- curl -o google-java-format.jar https://github.com/google/google-java-format/releases/download/google-java-format-1.7/google-java-format-1.7-all-deps.jar
+ curl -Lo google-java-format.jar https://github.com/google/google-java-format/releases/download/google-java-format-1.7/google-java-format-1.7-all-deps.jar
fi
cp google-java-format.jar ${dest}/
@@ -24,4 +24,5 @@
cp $(which gofmt) ${dest}/
+chmod 755 ${dest}/*
tar cfz ${dest}.tar.gz ${dest}/