Skip to content

Commit 6df9625

Browse files
richardweinbergerjan-kiszka
authored andcommitted
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 <[email protected]> Signed-off-by: Jan Kiszka <[email protected]>
1 parent ea4099c commit 6df9625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

container-entrypoint

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
#
33
# kas - setup tool for bitbake based projects
44
#
@@ -42,7 +42,7 @@ if [ -z "$USER_ID" ]; then
4242
# Work around gitlab-runner not aligning checked out repo ownership
4343
# with our builder user
4444
sudo git config --system safe.directory "*"
45-
elif [ "$USER_ID" == 0 ]; then
45+
elif [ "$USER_ID" = 0 ]; then
4646
# We shall run everything as root
4747
GOSU=""
4848
else

0 commit comments

Comments
 (0)