From bc43d91f0a5bfce4c5c5af873f70949560af9ca2 Mon Sep 17 00:00:00 2001 From: h0nIg Date: Tue, 17 Dec 2024 10:42:58 +0100 Subject: [PATCH] os agnostic bash path --- .../jobs/elb-registration-test/templates/run.erb | 2 +- .../jobs/encrypted-heavy-stemcell-test/templates/run.erb | 2 +- .../e2e-test-release/jobs/heavy-stemcell-test/templates/run.erb | 2 +- .../jobs/iam-instance-profile-test/templates/run.erb | 2 +- .../jobs/raw-ephemeral-disk-test/templates/run.erb | 2 +- .../e2e-test-release/jobs/spot-instance-test/templates/run.erb | 2 +- jobs/aws_cpi/templates/cpi.erb | 2 +- jobs/aws_cpi/templates/cpi_ctl.erb | 2 +- src/bosh_aws_cpi/bin/stemcell-copy | 2 +- src/bosh_aws_cpi/bin/test-integration | 2 +- src/bosh_aws_cpi/vendor_gems | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ci/assets/e2e-test-release/jobs/elb-registration-test/templates/run.erb b/ci/assets/e2e-test-release/jobs/elb-registration-test/templates/run.erb index 11ed6025..13e14c5a 100644 --- a/ci/assets/e2e-test-release/jobs/elb-registration-test/templates/run.erb +++ b/ci/assets/e2e-test-release/jobs/elb-registration-test/templates/run.erb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail export PATH=$(readlink -nf /var/vcap/packages/jq):/usr/local/bin:/var/vcap/packages/awscli/bin/:${PATH} diff --git a/ci/assets/e2e-test-release/jobs/encrypted-heavy-stemcell-test/templates/run.erb b/ci/assets/e2e-test-release/jobs/encrypted-heavy-stemcell-test/templates/run.erb index 99a88138..93ebcb23 100644 --- a/ci/assets/e2e-test-release/jobs/encrypted-heavy-stemcell-test/templates/run.erb +++ b/ci/assets/e2e-test-release/jobs/encrypted-heavy-stemcell-test/templates/run.erb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail export PATH=$(readlink -nf /var/vcap/packages/jq):/usr/local/bin:/var/vcap/packages/awscli/bin/:${PATH} diff --git a/ci/assets/e2e-test-release/jobs/heavy-stemcell-test/templates/run.erb b/ci/assets/e2e-test-release/jobs/heavy-stemcell-test/templates/run.erb index 369749a2..351d1521 100644 --- a/ci/assets/e2e-test-release/jobs/heavy-stemcell-test/templates/run.erb +++ b/ci/assets/e2e-test-release/jobs/heavy-stemcell-test/templates/run.erb @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash echo "VM was successfully launched with a heavy stemcell!" diff --git a/ci/assets/e2e-test-release/jobs/iam-instance-profile-test/templates/run.erb b/ci/assets/e2e-test-release/jobs/iam-instance-profile-test/templates/run.erb index f447bf80..f6287173 100644 --- a/ci/assets/e2e-test-release/jobs/iam-instance-profile-test/templates/run.erb +++ b/ci/assets/e2e-test-release/jobs/iam-instance-profile-test/templates/run.erb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/ci/assets/e2e-test-release/jobs/raw-ephemeral-disk-test/templates/run.erb b/ci/assets/e2e-test-release/jobs/raw-ephemeral-disk-test/templates/run.erb index 9361fc6e..1b6b2d94 100644 --- a/ci/assets/e2e-test-release/jobs/raw-ephemeral-disk-test/templates/run.erb +++ b/ci/assets/e2e-test-release/jobs/raw-ephemeral-disk-test/templates/run.erb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Querying for raw ephemeral disks..." ls -la /dev/disk/by-partlabel/raw-ephemeral-* diff --git a/ci/assets/e2e-test-release/jobs/spot-instance-test/templates/run.erb b/ci/assets/e2e-test-release/jobs/spot-instance-test/templates/run.erb index 1ce1a2a2..5efa7dc1 100644 --- a/ci/assets/e2e-test-release/jobs/spot-instance-test/templates/run.erb +++ b/ci/assets/e2e-test-release/jobs/spot-instance-test/templates/run.erb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e -o pipefail export PATH=$(readlink -nf /var/vcap/packages/jq):/usr/local/bin:/var/vcap/packages/awscli/bin/:${PATH} diff --git a/jobs/aws_cpi/templates/cpi.erb b/jobs/aws_cpi/templates/cpi.erb index 34710ed6..295aca24 100644 --- a/jobs/aws_cpi/templates/cpi.erb +++ b/jobs/aws_cpi/templates/cpi.erb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/jobs/aws_cpi/templates/cpi_ctl.erb b/jobs/aws_cpi/templates/cpi_ctl.erb index 8b729f94..bad48cf1 100644 --- a/jobs/aws_cpi/templates/cpi_ctl.erb +++ b/jobs/aws_cpi/templates/cpi_ctl.erb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/src/bosh_aws_cpi/bin/stemcell-copy b/src/bosh_aws_cpi/bin/stemcell-copy index 57166e66..712ece63 100755 --- a/src/bosh_aws_cpi/bin/stemcell-copy +++ b/src/bosh_aws_cpi/bin/stemcell-copy @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This script runs as root through sudo without the need for a password, # so it needs to make sure it can't be abused. diff --git a/src/bosh_aws_cpi/bin/test-integration b/src/bosh_aws_cpi/bin/test-integration index faf25d46..39b4e888 100755 --- a/src/bosh_aws_cpi/bin/test-integration +++ b/src/bosh_aws_cpi/bin/test-integration @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/src/bosh_aws_cpi/vendor_gems b/src/bosh_aws_cpi/vendor_gems index 9903c5f4..3bc039d2 100755 --- a/src/bosh_aws_cpi/vendor_gems +++ b/src/bosh_aws_cpi/vendor_gems @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e