From 4534541e75ecec0791daeb8b834f028d1d110912 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Keck <jean-baptiste.keck@univ-grenoble-alpes.fr>
Date: Sat, 24 Sep 2022 18:29:53 +0200
Subject: [PATCH] change bash shebang [skip ci]

---
 ci/scripts/build.sh   |  2 +-
 ci/scripts/config.sh  |  2 +-
 ci/scripts/install.sh |  2 +-
 ci/scripts/test.sh    |  2 +-
 ci/scripts/version.sh | 17 +----------------
 ci/utils/run_ci.bat   |  2 +-
 6 files changed, 6 insertions(+), 21 deletions(-)

diff --git a/ci/scripts/build.sh b/ci/scripts/build.sh
index e357fb460..40bcb7f15 100755
--- a/ci/scripts/build.sh
+++ b/ci/scripts/build.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ##
 ## Copyright (C) HySoP 2011-2022
 ##
diff --git a/ci/scripts/config.sh b/ci/scripts/config.sh
index b8f7dde37..e67e17b36 100755
--- a/ci/scripts/config.sh
+++ b/ci/scripts/config.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ##
 ## Copyright (C) HySoP 2011-2022
 ##
diff --git a/ci/scripts/install.sh b/ci/scripts/install.sh
index 06daa6b38..26c36397e 100755
--- a/ci/scripts/install.sh
+++ b/ci/scripts/install.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ##
 ## Copyright (C) HySoP 2011-2022
 ##
diff --git a/ci/scripts/test.sh b/ci/scripts/test.sh
index 621d7386b..c23d54625 100755
--- a/ci/scripts/test.sh
+++ b/ci/scripts/test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ##
 ## Copyright (C) HySoP 2011-2022
 ##
diff --git a/ci/scripts/version.sh b/ci/scripts/version.sh
index a8a1cde38..b48f9c7f1 100755
--- a/ci/scripts/version.sh
+++ b/ci/scripts/version.sh
@@ -1,19 +1,4 @@
-#!/bin/bash
-##
-## Copyright (C) HySoP 2011-2022
-##
-## Licensed under the Apache License, Version 2.0 (the "License");
-## you may not use this file except in compliance with the License.
-## You may obtain a copy of the License at
-##
-##         http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-##
+#!/usr/bin/env bash
 set -feu -o pipefail
 echo "HOST"
 uname -a
diff --git a/ci/utils/run_ci.bat b/ci/utils/run_ci.bat
index 34118d2c6..e6d0628ee 100644
--- a/ci/utils/run_ci.bat
+++ b/ci/utils/run_ci.bat
@@ -16,6 +16,6 @@ docker create %EXTRA_ARGS% -v "%SCRIPT_DIR%\..\..:/hysop:ro" --name=%CONTAINER_I
 
 docker start %CONTAINER_ID%
 
-docker exec %CONTAINER_ID% /hysop/ci/scripts/build_and_test.sh
+docker exec %CONTAINER_ID% /usr/bin/bash /hysop/ci/scripts/build_and_test.sh
 
 docker commit %CONTAINER_ID% %DOCKER_IMG%
-- 
GitLab