From 98615c4a12e065a0e7c192fda371e7be519b6bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Mino?= Date: Wed, 25 Oct 2023 18:02:40 +0200 Subject: [PATCH] Use more universal shebang for scripts Fix compatibility with NixOS --- release.sh | 2 +- tests-ci/generate.sh | 2 +- tests-ci/sonar.sh | 2 +- tests-ci/start.sh | 2 +- tests-ci/start_docker_compose.sh | 2 +- tests-ci/stop.sh | 2 +- tests-ci/wait_sonar.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/release.sh b/release.sh index 25f31c40ec9..42eabaf8184 100755 --- a/release.sh +++ b/release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash GIT_MAIN_BRANCH='main' GIT_REMOTE='upstream' diff --git a/tests-ci/generate.sh b/tests-ci/generate.sh index cfb7dc18aad..da1fd84dcc3 100755 --- a/tests-ci/generate.sh +++ b/tests-ci/generate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash show_syntax() { echo "Usage: $0 " >&2 diff --git a/tests-ci/sonar.sh b/tests-ci/sonar.sh index b52e6abc4c1..56cea7a3b4d 100755 --- a/tests-ci/sonar.sh +++ b/tests-ci/sonar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash application=$1 if [[ $application == '' ]]; then diff --git a/tests-ci/start.sh b/tests-ci/start.sh index 0f012c3ab3a..b9095bc92ce 100755 --- a/tests-ci/start.sh +++ b/tests-ci/start.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PORT=$1 if [[ $PORT == '' ]]; then diff --git a/tests-ci/start_docker_compose.sh b/tests-ci/start_docker_compose.sh index 87388b042b8..86434e61689 100755 --- a/tests-ci/start_docker_compose.sh +++ b/tests-ci/start_docker_compose.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/tests-ci/stop.sh b/tests-ci/stop.sh index 1608c4ffb3b..d3fa7179ae8 100755 --- a/tests-ci/stop.sh +++ b/tests-ci/stop.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "*** Stopping JHipster Lite in 5sec..." sleep 5 diff --git a/tests-ci/wait_sonar.sh b/tests-ci/wait_sonar.sh index a92a5591285..e3bf50a7e3c 100755 --- a/tests-ci/wait_sonar.sh +++ b/tests-ci/wait_sonar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash log() { echo "*** $(date +'%Y-%m-%d %H:%M:%S')" "$@"