mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
ci: Fix style / identation if kata-arch.sh
We've been using: ``` function foo() { } ``` instead of ``` function foo() { } ``` Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
72743851c1
commit
6a76bf92cb
@ -12,9 +12,8 @@ typeset -r script_name=${0##*/}
|
|||||||
typeset -r cidir=$(dirname "$0")
|
typeset -r cidir=$(dirname "$0")
|
||||||
source "${cidir}/lib.sh"
|
source "${cidir}/lib.sh"
|
||||||
|
|
||||||
function usage()
|
function usage() {
|
||||||
{
|
cat <<EOF
|
||||||
cat <<EOF
|
|
||||||
Description: Display host architecture name in various formats.
|
Description: Display host architecture name in various formats.
|
||||||
|
|
||||||
Usage: $script_name [options]
|
Usage: $script_name [options]
|
||||||
@ -31,8 +30,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Convert architecture to the name used by golang
|
# Convert architecture to the name used by golang
|
||||||
function arch_to_golang()
|
function arch_to_golang() {
|
||||||
{
|
|
||||||
local -r arch="$1"
|
local -r arch="$1"
|
||||||
|
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
@ -45,8 +43,7 @@ function arch_to_golang()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Convert architecture to the name used by rust
|
# Convert architecture to the name used by rust
|
||||||
function arch_to_rust()
|
function arch_to_rust() {
|
||||||
{
|
|
||||||
local arch="$1"
|
local arch="$1"
|
||||||
|
|
||||||
if [ "${arch}" == "ppc64le" ]; then
|
if [ "${arch}" == "ppc64le" ]; then
|
||||||
@ -58,8 +55,7 @@ function arch_to_rust()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Convert architecture to the name used by the Linux kernel build system
|
# Convert architecture to the name used by the Linux kernel build system
|
||||||
function arch_to_kernel()
|
function arch_to_kernel() {
|
||||||
{
|
|
||||||
local -r arch="$1"
|
local -r arch="$1"
|
||||||
|
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
@ -71,8 +67,7 @@ function arch_to_kernel()
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
function main()
|
function main() {
|
||||||
{
|
|
||||||
local type="default"
|
local type="default"
|
||||||
|
|
||||||
local getopt_cmd="getopt"
|
local getopt_cmd="getopt"
|
||||||
|
Loading…
Reference in New Issue
Block a user