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 --- src/scripts/generate_version_h | 2 +- src/scripts/remove-rpath | 2 +- src/scripts/vnet/dhcp/left-ping-target.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/scripts') diff --git a/src/scripts/generate_version_h b/src/scripts/generate_version_h index 59123684d8d..cdcdf5dd42a 100755 --- a/src/scripts/generate_version_h +++ b/src/scripts/generate_version_h @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash : ${VPP_BUILD_USER:=$(whoami)} : ${VPP_BUILD_HOST:=$(hostname)} DATE_FMT="+%Y-%m-%dT%H:%M:%S" diff --git a/src/scripts/remove-rpath b/src/scripts/remove-rpath index 3e20b06dbfa..b6df461e464 100755 --- a/src/scripts/remove-rpath +++ b/src/scripts/remove-rpath @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/src/scripts/vnet/dhcp/left-ping-target.sh b/src/scripts/vnet/dhcp/left-ping-target.sh index 2edc2a50eaa..4dab842b819 100644 --- a/src/scripts/vnet/dhcp/left-ping-target.sh +++ b/src/scripts/vnet/dhcp/left-ping-target.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # to obtain dhcp address from leftpeer dhclient -d -v eth1 -- cgit 1.2.3-korg