diff --git a/tools/uid_entrypoint.sh b/tools/uid_entrypoint.sh index 1f8acc23b..3c8d78cf8 100755 --- a/tools/uid_entrypoint.sh +++ b/tools/uid_entrypoint.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -if ! whoami 2>&1 /dev/null; then +if ! whoami 2>&1 >/dev/null; then if [ -w /etc/passwd ]; then echo "${USER_NAME:-default}:x:$(id -u):0:${USER_NAME:-default} user:${HOME}:/sbin/nologin" >> /etc/passwd fi