mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-23 22:17:19 +00:00
ci: Add function
before each kata-arch.sh function
We've been doing this for all files moved to this repo. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
9f6d4892c8
commit
72743851c1
@ -12,7 +12,7 @@ typeset -r script_name=${0##*/}
|
||||
typeset -r cidir=$(dirname "$0")
|
||||
source "${cidir}/lib.sh"
|
||||
|
||||
usage()
|
||||
function usage()
|
||||
{
|
||||
cat <<EOF
|
||||
Description: Display host architecture name in various formats.
|
||||
@ -31,7 +31,7 @@ EOF
|
||||
}
|
||||
|
||||
# Convert architecture to the name used by golang
|
||||
arch_to_golang()
|
||||
function arch_to_golang()
|
||||
{
|
||||
local -r arch="$1"
|
||||
|
||||
@ -45,7 +45,7 @@ arch_to_golang()
|
||||
}
|
||||
|
||||
# Convert architecture to the name used by rust
|
||||
arch_to_rust()
|
||||
function arch_to_rust()
|
||||
{
|
||||
local arch="$1"
|
||||
|
||||
@ -58,7 +58,7 @@ arch_to_rust()
|
||||
}
|
||||
|
||||
# Convert architecture to the name used by the Linux kernel build system
|
||||
arch_to_kernel()
|
||||
function arch_to_kernel()
|
||||
{
|
||||
local -r arch="$1"
|
||||
|
||||
@ -71,7 +71,7 @@ arch_to_kernel()
|
||||
esac
|
||||
}
|
||||
|
||||
main()
|
||||
function main()
|
||||
{
|
||||
local type="default"
|
||||
|
||||
@ -125,4 +125,3 @@ main()
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user