File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33# SPDX-License-Identifier: MIT
44# Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com
@@ -13,8 +13,8 @@ get_build_gid() {
1313
1414if NEW_GID=$( get_build_gid) && NEW_UID=$( get_build_uid) ; then
1515 # bypass everything if podman is remapping the id to root
16- if [ " ${NEW_UID} " == " 0" ]; then
17- if [ " $( id -u) " == " 0" ]; then
16+ if [ " ${NEW_UID} " = " 0" ]; then
17+ if [ " $( id -u) " = " 0" ]; then
1818 exec dumb-init -- " $@ "
1919 else
2020 echo " Unable to resolve ns mapping!"
2828 echo " Not able to detect UID/GID for remapping!"
2929fi
3030
31- if [ " $( id -u) " == " $( id -u abc) " ]; then
31+ if [ " $( id -u) " = " $( id -u abc) " ]; then
3232 exec dumb-init -- " $@ "
3333else
3434 exec dumb-init -- su-exec abc:abc " $@ "
You can’t perform that action at this time.
0 commit comments