From 6df962506ae26aabad1f1f182d475dbe8ccae8ba Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Fri, 17 Mar 2023 11:49:24 +0100 Subject: [PATCH] container-entrypoint: Switch to POSIX shell kas-container is carefully written to be POSIX shell compliant. Let's do the same with container-entrypoint to be consistent. While we're here, remove the only bashism used in container-entrypoint. Signed-off-by: Richard Weinberger Signed-off-by: Jan Kiszka --- container-entrypoint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container-entrypoint b/container-entrypoint index a540eae..7f653e5 100755 --- a/container-entrypoint +++ b/container-entrypoint @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # kas - setup tool for bitbake based projects # @@ -42,7 +42,7 @@ if [ -z "$USER_ID" ]; then # Work around gitlab-runner not aligning checked out repo ownership # with our builder user sudo git config --system safe.directory "*" -elif [ "$USER_ID" == 0 ]; then +elif [ "$USER_ID" = 0 ]; then # We shall run everything as root GOSU="" else