mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 07:22:20 +00:00
shellcheck: Fix shellcheck SC2148
> Tips depend on target shell and yours is unknown. Add a shebang. Add ``` #!/usr/bin/env bash ``` Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
c5ff513e0b
commit
dbba6b056b
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright 2019 HyperHQ Inc.
|
# Copyright 2019 HyperHQ Inc.
|
||||||
#
|
#
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
# Copyright (c) 2022-2024 Intel Corporation
|
# Copyright (c) 2022-2024 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 Intel Corporation
|
# Copyright (c) 2018 Intel Corporation
|
||||||
#
|
#
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
# Copyright (c) 2023 Microsoft Corporation
|
# Copyright (c) 2023 Microsoft Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
# Copyright (c) 2023 Microsoft Corporation
|
# Copyright (c) 2023 Microsoft Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE
|
# Copyright (c) 2018 SUSE
|
||||||
#
|
#
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE
|
# Copyright (c) 2018 SUSE
|
||||||
#
|
#
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 Intel Corporation
|
# Copyright (c) 2018 Intel Corporation
|
||||||
#
|
#
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018-2020 Intel Corporation
|
# Copyright (c) 2018-2020 Intel Corporation
|
||||||
#
|
#
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
# Copyright (c) 2018 Yash Jain, 2022 IBM Corp.
|
# Copyright (c) 2018 Yash Jain, 2022 IBM Corp.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
# Copyright (c) 2018 Yash Jain, 2022 IBM Corp.
|
# Copyright (c) 2018 Yash Jain, 2022 IBM Corp.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
@ -49,7 +51,7 @@ EOF
|
|||||||
apt update
|
apt update
|
||||||
|
|
||||||
if ! multistrap -a "$DEB_ARCH" -d "$rootfs_dir" -f "$multistrap_conf"; then
|
if ! multistrap -a "$DEB_ARCH" -d "$rootfs_dir" -f "$multistrap_conf"; then
|
||||||
if [ "$OS_VERSION" = "focal" ]; then
|
if [ "$OS_VERSION" = "focal" ]; then
|
||||||
echo "WARN: multistrap failed, proceed with hack for Ubuntu 20.04"
|
echo "WARN: multistrap failed, proceed with hack for Ubuntu 20.04"
|
||||||
build_dbus $rootfs_dir
|
build_dbus $rootfs_dir
|
||||||
else
|
else
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LLC
|
# Copyright (c) 2018 SUSE LLC
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user