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 <richard@nod.at> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
ea4099c2c8
commit
6df962506a
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# kas - setup tool for bitbake based projects
|
# 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
|
# Work around gitlab-runner not aligning checked out repo ownership
|
||||||
# with our builder user
|
# with our builder user
|
||||||
sudo git config --system safe.directory "*"
|
sudo git config --system safe.directory "*"
|
||||||
elif [ "$USER_ID" == 0 ]; then
|
elif [ "$USER_ID" = 0 ]; then
|
||||||
# We shall run everything as root
|
# We shall run everything as root
|
||||||
GOSU=""
|
GOSU=""
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user