xref: /aosp_15_r20/external/crosvm/tools/impl/cros_container/entrypoint.sh (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1#!/usr/bin/env bash
2# Copyright 2022 The ChromiumOS Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Run provided command or interactive shell
7if [[ $# -eq 0 ]]; then
8    sudo -u crosvmdev /bin/bash -l
9else
10    sudo -u crosvmdev /bin/bash -l -c "$*"
11fi
12