From 80c5c2eb3e173f533c7999b364c1a469a3e7c17e Mon Sep 17 00:00:00 2001 From: Alexander Yastrebov Date: Fri, 12 Jan 2024 08:25:43 +0100 Subject: [PATCH] Use bash in prepare scripts (#339) Prepare scripts that use `#!/bin/sh` and `source "$HOME/.sdkman/bin/sdkman-init.sh"` fail on systems where `sh` is not `bash`, e.g. on Ubuntu it is `dash` which has not `source`. --- prepare_hundredwatt.sh | 3 +-- prepare_kuduwa-keshavram.sh | 2 +- prepare_mtopolnik.sh | 2 +- prepare_ricardopieper.sh | 2 +- prepare_roman-r-m.sh | 4 ++-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/prepare_hundredwatt.sh b/prepare_hundredwatt.sh index 90a0a42..ef131d3 100755 --- a/prepare_hundredwatt.sh +++ b/prepare_hundredwatt.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright 2023 The original authors # @@ -15,6 +15,5 @@ # limitations under the License. # - source "$HOME/.sdkman/bin/sdkman-init.sh" sdk use java 21.0.1-graal diff --git a/prepare_kuduwa-keshavram.sh b/prepare_kuduwa-keshavram.sh index a705f17..f83a3ff 100755 --- a/prepare_kuduwa-keshavram.sh +++ b/prepare_kuduwa-keshavram.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright 2023 The original authors # diff --git a/prepare_mtopolnik.sh b/prepare_mtopolnik.sh index a705f17..f83a3ff 100755 --- a/prepare_mtopolnik.sh +++ b/prepare_mtopolnik.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright 2023 The original authors # diff --git a/prepare_ricardopieper.sh b/prepare_ricardopieper.sh index a705f17..f83a3ff 100755 --- a/prepare_ricardopieper.sh +++ b/prepare_ricardopieper.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright 2023 The original authors # diff --git a/prepare_roman-r-m.sh b/prepare_roman-r-m.sh index 6a33e2b..f83a3ff 100755 --- a/prepare_roman-r-m.sh +++ b/prepare_roman-r-m.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright 2023 The original authors # @@ -16,4 +16,4 @@ # source "$HOME/.sdkman/bin/sdkman-init.sh" -sdk use java 21.0.1-graal 1>&2 \ No newline at end of file +sdk use java 21.0.1-graal 1>&2