We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e0d2f2 commit 7e9fa9bCopy full SHA for 7e9fa9b
1 file changed
docker/root/init
@@ -1,4 +1,4 @@
1
-#!/bin/bash
+#!/bin/sh
2
3
# SPDX-License-Identifier: MIT
4
# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com
@@ -13,8 +13,8 @@ get_build_gid() {
13
14
if NEW_GID=$(get_build_gid) && NEW_UID=$(get_build_uid); then
15
# bypass everything if podman is remapping the id to root
16
- if [ "${NEW_UID}" == "0" ]; then
17
- if [ "$(id -u)" == "0" ]; then
+ if [ "${NEW_UID}" = "0" ]; then
+ if [ "$(id -u)" = "0" ]; then
18
exec dumb-init -- "$@"
19
else
20
echo "Unable to resolve ns mapping!"
@@ -28,7 +28,7 @@ else
28
echo "Not able to detect UID/GID for remapping!"
29
fi
30
31
-if [ "$(id -u)" == "$(id -u abc)" ]; then
+if [ "$(id -u)" = "$(id -u abc)" ]; then
32
33
34
exec dumb-init -- su-exec abc:abc "$@"
0 commit comments