From 2b6a96b28fa2c66abb2a9e9ea01bb9bf1684165d Mon Sep 17 00:00:00 2001 From: Kevin Reeuwijk Date: Thu, 2 May 2024 14:54:48 +0200 Subject: [PATCH] Remove dependency on bash (#839) * Remove dependency on bash Bash is not always the default shell, and `source` only works in Bash. With Ubuntu 23 and 24 for example, the default shell is now Dash. Using `.` ensures wide compatibility. * Apply suggestions from code review * Apply suggestions from code review --------- Co-authored-by: Ettore Di Giacinto --- packages/kernels/linux-tegra/nvbuild.sh | 2 +- .../kairos-overlay-files/files/system/oem/00_rootfs.yaml | 4 ++-- .../files/system/oem/09_openrc_services.yaml | 4 ++-- .../kairos-overlay-files/files/system/oem/50_recovery.yaml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/kernels/linux-tegra/nvbuild.sh b/packages/kernels/linux-tegra/nvbuild.sh index f41dd0112..42b190a43 100644 --- a/packages/kernels/linux-tegra/nvbuild.sh +++ b/packages/kernels/linux-tegra/nvbuild.sh @@ -37,7 +37,7 @@ set -e SCRIPT_DIR="$(dirname $(readlink -f "${0}"))" SCRIPT_NAME="$(basename "${0}")" -source "${SCRIPT_DIR}/nvcommon_build.sh" +. "${SCRIPT_DIR}/nvcommon_build.sh" function usage { cat <> /etc/issue echo "You are booting from recovery mode. Run 'kairos-agent reset' to reset the system to $VERSION" >> /etc/issue echo " or 'kairos-agent upgrade' to upgrade the active partition" >> /etc/issue