From c3b416c49253bcf3223d2aec8c5ca06f0c78e6f9 Mon Sep 17 00:00:00 2001 From: Tom Jones Date: Thu, 18 Jan 2024 14:51:44 +0000 Subject: build: Explicitly use bash for shell scripts VPP requires bash for all shell scripts. Align shebang lines in build and test scripts to look up the location of bash rather than hard coding '/bin/bash'. Look up the location of bash for makefiles. Type: improvement Change-Id: I23b705d81d60389fa8af61c680cf0abd74f0ea24 Signed-off-by: Tom Jones --- extras/vagrant/build.sh | 2 +- extras/vagrant/clearinterfaces.sh | 2 +- extras/vagrant/install.sh | 2 +- extras/vagrant/run.sh | 2 +- extras/vagrant/update.sh | 2 +- extras/vagrant/vcl_test.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'extras') diff --git a/extras/vagrant/build.sh b/extras/vagrant/build.sh index 0e63947a8b5..631b9909d3e 100755 --- a/extras/vagrant/build.sh +++ b/extras/vagrant/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Get Command Line arguements if present VPP_DIR=$1 diff --git a/extras/vagrant/clearinterfaces.sh b/extras/vagrant/clearinterfaces.sh index 31a63098e87..50b96f0d8b0 100755 --- a/extras/vagrant/clearinterfaces.sh +++ b/extras/vagrant/clearinterfaces.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Capture all the interface IPs, in case we need them later ip -o addr show > ~vagrant/ifconfiga diff --git a/extras/vagrant/install.sh b/extras/vagrant/install.sh index cfe5fe5b2d0..67a2e4fb990 100755 --- a/extras/vagrant/install.sh +++ b/extras/vagrant/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Get Command Line arguements if present VPP_DIR=$1 diff --git a/extras/vagrant/run.sh b/extras/vagrant/run.sh index 3e87e259442..be2d8425903 100755 --- a/extras/vagrant/run.sh +++ b/extras/vagrant/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Figure out what system we are running on if [ "$(uname)" <> "Darwin" ] ; then diff --git a/extras/vagrant/update.sh b/extras/vagrant/update.sh index 3fb456b26eb..e56e6ba004e 100755 --- a/extras/vagrant/update.sh +++ b/extras/vagrant/update.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Make sure that we get the hugepages we need on provision boot # Note: The package install should take care of this at the end diff --git a/extras/vagrant/vcl_test.sh b/extras/vagrant/vcl_test.sh index 5d58d73745f..2bad0f6e14f 100755 --- a/extras/vagrant/vcl_test.sh +++ b/extras/vagrant/vcl_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -n "$1" ]; then VPP_DIR=$1 -- cgit 1.2.3-korg