mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
Remove trailing space from shell files
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ if [ ! -f "$PROTOC_BIN" ]; then
|
||||
echo "Downloading protoc v${PROTOC_VERSION} for ${PROTOC_PLATFORM}..."
|
||||
mkdir -p "$OUT_DIR"
|
||||
URL="https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-${PROTOC_PLATFORM}.zip"
|
||||
|
||||
|
||||
case "$PROTOC_PLATFORM" in
|
||||
"linux-x86_64") EXPECTED_SHA="${linux_x86_64_EXPECTED_SHA}";;
|
||||
"linux-aarch_64") EXPECTED_SHA="${linux_aarch_64_EXPECTED_SHA}";;
|
||||
|
||||
@@ -43,10 +43,10 @@ trap "rm -f ${tmpfile}" EXIT
|
||||
|
||||
for target in "${targets[@]}"; do
|
||||
IFS="/" read -r target_os target_arch <<< "${target}"
|
||||
|
||||
|
||||
# Create a temporary output folder for each target
|
||||
tmp_out="$(mktemp -d -t "update-licenses-out.XXXXXX")"
|
||||
|
||||
|
||||
GOOS="${target_os}" \
|
||||
GOARCH="${target_arch}" \
|
||||
CGO_ENABLED=1 \
|
||||
@@ -59,7 +59,7 @@ for target in "${targets[@]}"; do
|
||||
|
||||
# Bug in go-licenses? Our repo gets included in a loop
|
||||
rm -rf "${tmp_out}/github.com/agent-substrate/substrate"
|
||||
|
||||
|
||||
# Merge the results into the main OUTDIR
|
||||
if [ "$(ls -A "${tmp_out}")" ]; then
|
||||
chmod -R u+w "${OUTDIR}" 2>/dev/null || true
|
||||
|
||||
@@ -19,4 +19,4 @@ set -o errexit -o nounset -o pipefail
|
||||
ROOT="$(git rev-parse --show-toplevel)"
|
||||
cd "${ROOT}"
|
||||
|
||||
./hack/third_party/kubernetes/verify-generated.sh go-generate "$@"
|
||||
./hack/third_party/kubernetes/verify-generated.sh go-generate "$@"
|
||||
|
||||
@@ -19,4 +19,4 @@ set -o errexit -o nounset -o pipefail
|
||||
ROOT="$(git rev-parse --show-toplevel)"
|
||||
cd "${ROOT}"
|
||||
|
||||
./hack/third_party/kubernetes/verify-generated.sh go-mod-tidy "$@"
|
||||
./hack/third_party/kubernetes/verify-generated.sh go-mod-tidy "$@"
|
||||
|
||||
@@ -19,4 +19,4 @@ set -o errexit -o nounset -o pipefail
|
||||
ROOT="$(git rev-parse --show-toplevel)"
|
||||
cd "${ROOT}"
|
||||
|
||||
./hack/third_party/kubernetes/verify-generated.sh licenses "$@"
|
||||
./hack/third_party/kubernetes/verify-generated.sh licenses "$@"
|
||||
|
||||
Reference in New Issue
Block a user