From 61a3239247a9688b1cfdf1f12731abc5628b6286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Bueno=20L=C3=B3pez?= <69244257+JLBuenoLopez-eProsima@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:44:21 +0200 Subject: [PATCH] Improve scripts' shebang portability (#3732) Signed-off-by: JLBuenoLopez-eProsima --- test/profiling/allocations/test.sh | 2 +- test/profiling/allocations/test_with_memory_tool.sh | 2 +- tools/fastdds/fastdds | 2 +- tools/fastdds/ros-discovery | 2 +- utils/scripts/update_generated_code_from_idl.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/profiling/allocations/test.sh b/test/profiling/allocations/test.sh index 45150755395..e6fff08a7c8 100644 --- a/test/profiling/allocations/test.sh +++ b/test/profiling/allocations/test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ## Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). ## diff --git a/test/profiling/allocations/test_with_memory_tool.sh b/test/profiling/allocations/test_with_memory_tool.sh index 983b603e4c0..8a0e9a4cfae 100644 --- a/test/profiling/allocations/test_with_memory_tool.sh +++ b/test/profiling/allocations/test_with_memory_tool.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ## Copyright 2018-2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). ## diff --git a/tools/fastdds/fastdds b/tools/fastdds/fastdds index 9d48f4941b8..1f633049b56 100755 --- a/tools/fastdds/fastdds +++ b/tools/fastdds/fastdds @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh dir="`dirname \"$0\"`" python3 "$dir/../tools/fastdds/fastdds.py" ${@} diff --git a/tools/fastdds/ros-discovery b/tools/fastdds/ros-discovery index f76df454788..7bc96a7539d 100644 --- a/tools/fastdds/ros-discovery +++ b/tools/fastdds/ros-discovery @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh dir="`dirname \"$0\"`" python3 "$dir/../tools/fastdds/fastdds.py" discovery ${@} diff --git a/utils/scripts/update_generated_code_from_idl.sh b/utils/scripts/update_generated_code_from_idl.sh index 77008493d0a..8f87548a909 100755 --- a/utils/scripts/update_generated_code_from_idl.sh +++ b/utils/scripts/update_generated_code_from_idl.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash files_to_exclude=( './include/fastrtps/types/*'