From 61e0f1ca4310e3bc66d69958095773f0520423e8 Mon Sep 17 00:00:00 2001 From: chacha Date: Sat, 28 Mar 2026 00:29:38 +0100 Subject: [PATCH] use bash instead of sh --- bases/common-base/entry.sh | 2 +- bases/common-base/generate.sh | 2 +- bases/common-base/hooks/05-common-base.sh | 2 +- bases/retrodebian-common/entry.sh | 2 +- bases/retrodebian-common/generate.sh | 2 +- bases/retrodebian-common/hooks/05-common-base.sh | 2 +- bases/sample-base/entry.sh | 2 +- bases/sample-base/generate.sh | 2 +- bases/sample-base/hooks/10-sample-base.sh | 2 +- builder/bash/common.sh | 2 +- builder/bash/run_entry.sh | 2 +- builder/bash/run_generate.sh | 2 +- builder/bash/run_profile_build.sh | 2 +- builder/bash/run_profile_config.sh | 2 +- features/sample-feature/entry.sh | 2 +- features/sample-feature/generate.sh | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bases/common-base/entry.sh b/bases/common-base/entry.sh index 039e4d0..06bd986 100644 --- a/bases/common-base/entry.sh +++ b/bases/common-base/entry.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/bash exit 0 diff --git a/bases/common-base/generate.sh b/bases/common-base/generate.sh index 564399d..20dfd89 100644 --- a/bases/common-base/generate.sh +++ b/bases/common-base/generate.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) MODULE_NAME=$(basename "$SCRIPT_DIR") diff --git a/bases/common-base/hooks/05-common-base.sh b/bases/common-base/hooks/05-common-base.sh index f35f07b..9bebb6a 100644 --- a/bases/common-base/hooks/05-common-base.sh +++ b/bases/common-base/hooks/05-common-base.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/bash echo "common-base live hook" diff --git a/bases/retrodebian-common/entry.sh b/bases/retrodebian-common/entry.sh index 039e4d0..06bd986 100644 --- a/bases/retrodebian-common/entry.sh +++ b/bases/retrodebian-common/entry.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/bash exit 0 diff --git a/bases/retrodebian-common/generate.sh b/bases/retrodebian-common/generate.sh index 564399d..20dfd89 100644 --- a/bases/retrodebian-common/generate.sh +++ b/bases/retrodebian-common/generate.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) MODULE_NAME=$(basename "$SCRIPT_DIR") diff --git a/bases/retrodebian-common/hooks/05-common-base.sh b/bases/retrodebian-common/hooks/05-common-base.sh index f35f07b..9bebb6a 100644 --- a/bases/retrodebian-common/hooks/05-common-base.sh +++ b/bases/retrodebian-common/hooks/05-common-base.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/bash echo "common-base live hook" diff --git a/bases/sample-base/entry.sh b/bases/sample-base/entry.sh index 6246744..b763b3f 100644 --- a/bases/sample-base/entry.sh +++ b/bases/sample-base/entry.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu PHASE=${1:-} diff --git a/bases/sample-base/generate.sh b/bases/sample-base/generate.sh index c9415a1..d0085fb 100644 --- a/bases/sample-base/generate.sh +++ b/bases/sample-base/generate.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu [ -n "${CURRENT_MODULE_ARTIFACT_DIR:-}" ] || { echo "CURRENT_MODULE_ARTIFACT_DIR is required" >&2; exit 2; } diff --git a/bases/sample-base/hooks/10-sample-base.sh b/bases/sample-base/hooks/10-sample-base.sh index c6e7a25..d253b70 100644 --- a/bases/sample-base/hooks/10-sample-base.sh +++ b/bases/sample-base/hooks/10-sample-base.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu printf 'sample base chroot hook ' > /tmp/sample-base-hook.txt diff --git a/builder/bash/common.sh b/builder/bash/common.sh index b6be69b..743be93 100644 --- a/builder/bash/common.sh +++ b/builder/bash/common.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash fail() { echo "ERROR: $*" >&2 diff --git a/builder/bash/run_entry.sh b/builder/bash/run_entry.sh index ecffb5f..bc38c90 100644 --- a/builder/bash/run_entry.sh +++ b/builder/bash/run_entry.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu SELF_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) diff --git a/builder/bash/run_generate.sh b/builder/bash/run_generate.sh index 90f6f6b..b807538 100644 --- a/builder/bash/run_generate.sh +++ b/builder/bash/run_generate.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu SELF_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) diff --git a/builder/bash/run_profile_build.sh b/builder/bash/run_profile_build.sh index 04edf3f..cb6e4de 100644 --- a/builder/bash/run_profile_build.sh +++ b/builder/bash/run_profile_build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu SELF_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) diff --git a/builder/bash/run_profile_config.sh b/builder/bash/run_profile_config.sh index 10eb38c..87b332f 100644 --- a/builder/bash/run_profile_config.sh +++ b/builder/bash/run_profile_config.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu SELF_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) diff --git a/features/sample-feature/entry.sh b/features/sample-feature/entry.sh index bc00907..a3b51d7 100644 --- a/features/sample-feature/entry.sh +++ b/features/sample-feature/entry.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu PHASE=${1:-} diff --git a/features/sample-feature/generate.sh b/features/sample-feature/generate.sh index 444f0e6..c406cab 100644 --- a/features/sample-feature/generate.sh +++ b/features/sample-feature/generate.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -eu [ -n "${CURRENT_MODULE_ARTIFACT_DIR:-}" ] || { echo "CURRENT_MODULE_ARTIFACT_DIR is required" >&2; exit 2; }