From b5214a06643efb35f1adddebb2788032e58040f4 Mon Sep 17 00:00:00 2001 From: leigh capili Date: Mon, 1 Mar 2021 10:39:59 -0700 Subject: [PATCH] Fix #! to use /usr/bin/env for certain scripts --- hack/find-extra-prs-not-in-git.sh | 2 +- hack/find-undocumented-release-prs-from-git.sh | 2 +- hack/gen-release-notes.sh | 2 +- hack/generate-client.sh | 2 +- hack/graph.sh | 2 +- hack/imports-stats.sh | 2 +- hack/ldflags.sh | 2 +- hack/minor-release.sh | 2 +- hack/patch-release.sh | 2 +- hack/push-manifest-list.sh | 2 +- hack/release-common.sh | 2 +- images/kernel/patch-config.sh | 2 +- images/kernel/upgrade-config.sh | 2 +- images/kubeadm/install.sh | 2 +- images/kubeadm/prepare.sh | 2 +- tools/ignite-flannel.sh | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hack/find-extra-prs-not-in-git.sh b/hack/find-extra-prs-not-in-git.sh index 4083e598a..6d1ad5918 100755 --- a/hack/find-extra-prs-not-in-git.sh +++ b/hack/find-extra-prs-not-in-git.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PREVIOUS_TAG=${1} RELEASE_NOTES=${2} diff --git a/hack/find-undocumented-release-prs-from-git.sh b/hack/find-undocumented-release-prs-from-git.sh index 60e2c276d..2ebff51d9 100755 --- a/hack/find-undocumented-release-prs-from-git.sh +++ b/hack/find-undocumented-release-prs-from-git.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PREVIOUS_TAG=${1} RELEASE_NOTES=${2} diff --git a/hack/gen-release-notes.sh b/hack/gen-release-notes.sh index 0f6543c68..e41f94ca8 100755 --- a/hack/gen-release-notes.sh +++ b/hack/gen-release-notes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PREVIOUS_TAG=${1} OPTIONAL_REF=${2} diff --git a/hack/generate-client.sh b/hack/generate-client.sh index de936045b..ab0264d78 100755 --- a/hack/generate-client.sh +++ b/hack/generate-client.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SCRIPT_DIR=$( dirname "${BASH_SOURCE[0]}" ) cd ${SCRIPT_DIR}/.. diff --git a/hack/graph.sh b/hack/graph.sh index 72eb4766c..1e22f05c3 100755 --- a/hack/graph.sh +++ b/hack/graph.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SCRIPT_DIR=$( dirname "${BASH_SOURCE[0]}" ) cd ${SCRIPT_DIR}/.. diff --git a/hack/imports-stats.sh b/hack/imports-stats.sh index 3990c62c5..abf5a66ef 100755 --- a/hack/imports-stats.sh +++ b/hack/imports-stats.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash BINARIES=${@:-"ignite ignited ignite-spawn"} PRINT=${PRINT:-"false"} diff --git a/hack/ldflags.sh b/hack/ldflags.sh index 283ea49a5..9c91099ca 100755 --- a/hack/ldflags.sh +++ b/hack/ldflags.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Note: This file is heavily inspired by https://github.com/kubernetes/kubernetes/blob/master/hack/lib/version.sh diff --git a/hack/minor-release.sh b/hack/minor-release.sh index 01803c425..7e7d1e96e 100755 --- a/hack/minor-release.sh +++ b/hack/minor-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SCRIPT_DIR=$( dirname "${BASH_SOURCE[0]}" ) cd ${SCRIPT_DIR}/.. diff --git a/hack/patch-release.sh b/hack/patch-release.sh index 00c9dfdff..a385b14c1 100755 --- a/hack/patch-release.sh +++ b/hack/patch-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SCRIPT_DIR=$( dirname "${BASH_SOURCE[0]}" ) cd ${SCRIPT_DIR}/.. diff --git a/hack/push-manifest-list.sh b/hack/push-manifest-list.sh index ba98fa0dc..919cc600b 100755 --- a/hack/push-manifest-list.sh +++ b/hack/push-manifest-list.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ $# == 0 ]]; then echo "Usage: $0 [manifest-list] [arch0...n]" diff --git a/hack/release-common.sh b/hack/release-common.sh index 272c48e4f..a20d019da 100644 --- a/hack/release-common.sh +++ b/hack/release-common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash DOCKER_TTY="${DOCKER_TTY:+"-t"}" diff --git a/images/kernel/patch-config.sh b/images/kernel/patch-config.sh index 06f1fc138..cf628faea 100755 --- a/images/kernel/patch-config.sh +++ b/images/kernel/patch-config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # The path to where the "patch instructions" are PATCH_FILE="./config-patches" diff --git a/images/kernel/upgrade-config.sh b/images/kernel/upgrade-config.sh index d0003715b..22508305f 100755 --- a/images/kernel/upgrade-config.sh +++ b/images/kernel/upgrade-config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash KERNEL_BUILDER_IMAGE=weaveworks/ignite-kernel-builder:dev LINUX_REPO_URL=git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git diff --git a/images/kubeadm/install.sh b/images/kubeadm/install.sh index 79680bb07..9b14a8d11 100755 --- a/images/kubeadm/install.sh +++ b/images/kubeadm/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x diff --git a/images/kubeadm/prepare.sh b/images/kubeadm/prepare.sh index 6b9646ae4..b8d33469b 100755 --- a/images/kubeadm/prepare.sh +++ b/images/kubeadm/prepare.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Set up the seed node with the specified config file IMAGE=${IMAGE:-"weaveworks/ignite-kubeadm"} diff --git a/tools/ignite-flannel.sh b/tools/ignite-flannel.sh index ecd656f03..e316c6cc8 100755 --- a/tools/ignite-flannel.sh +++ b/tools/ignite-flannel.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e # This is a helper script to set up a standalone CNI overlay using Flannel # for use with Ignite VMs. See docs/networking.md for more information.