From b7bef6d0f1268b98826f840a5aaceb585516b394 Mon Sep 17 00:00:00 2001 From: zc Date: Fri, 3 Sep 2021 13:51:12 +0800 Subject: [PATCH] The shebang must be on the first line. Delete blanks and move comments (#448) --- hack/lib/build.sh | 4 ++-- hack/lib/common.sh | 4 ++-- hack/lib/init.sh | 4 ++-- hack/lib/release-images.sh | 4 ++-- hack/make-rules/build.sh | 4 ++-- hack/make-rules/release-images.sh | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hack/lib/build.sh b/hack/lib/build.sh index be4260f730e..900e1b82a8a 100644 --- a/hack/lib/build.sh +++ b/hack/lib/build.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Copyright 2020 The OpenYurt Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/usr/bin/env bash - set -x readonly YURT_ALL_TARGETS=( diff --git a/hack/lib/common.sh b/hack/lib/common.sh index 1ca73ee9926..d47961a54ee 100644 --- a/hack/lib/common.sh +++ b/hack/lib/common.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Copyright 2020 The OpenYurt Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/usr/bin/env bash - set -x # get_output_name generates the executable's name. If the $PROJECT_PREFIX diff --git a/hack/lib/init.sh b/hack/lib/init.sh index 0cc1c11cfb7..6b2048703f3 100644 --- a/hack/lib/init.sh +++ b/hack/lib/init.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Copyright 2020 The OpenYurt Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/usr/bin/env bash - set -o errexit set -o nounset set -o pipefail diff --git a/hack/lib/release-images.sh b/hack/lib/release-images.sh index ce37d4c9c58..8494ca56707 100644 --- a/hack/lib/release-images.sh +++ b/hack/lib/release-images.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Copyright 2020 The OpenYurt Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/usr/bin/env bash - set -x YURT_IMAGE_DIR=${YURT_OUTPUT_DIR}/images diff --git a/hack/make-rules/build.sh b/hack/make-rules/build.sh index 639de86dd70..e89a1a8d1ba 100755 --- a/hack/make-rules/build.sh +++ b/hack/make-rules/build.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Copyright 2020 The OpenYurt Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/usr/bin/env bash - set -x YURT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)" diff --git a/hack/make-rules/release-images.sh b/hack/make-rules/release-images.sh index 391d846451e..f64bba8b516 100755 --- a/hack/make-rules/release-images.sh +++ b/hack/make-rules/release-images.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Copyright 2020 The OpenYurt Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/usr/bin/env bash - set -x YURT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"