rename function to _architecture_check

This commit is contained in:
Tobias Powalowski 2022-11-23 07:40:48 +01:00
parent 332ca5d3f7
commit 06cdb25c30
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ _riscv64_check() {
} }
### check architecture ### check architecture
_check_architecture() { _architecture_check() {
echo "${0}" | grep -qw aarch64 && _aarch64_check echo "${0}" | grep -qw aarch64 && _aarch64_check
echo "${0}" | grep -qw riscv64 && _riscv64_check echo "${0}" | grep -qw riscv64 && _riscv64_check
echo "${0}" | grep -qw x86_64 && _x86_64_check echo "${0}" | grep -qw x86_64 && _x86_64_check

View file

@ -6,7 +6,7 @@
_parameters "$@" _parameters "$@"
_root_check _root_check
[[ "${_GENERATE}" == "1" ]] || _usage [[ "${_GENERATE}" == "1" ]] || _usage
_check_architecture _architecture_check
_config _config
if echo "${0}" | grep -qw aarch64 || echo "${0}" | grep -qw x86_64; then if echo "${0}" | grep -qw aarch64 || echo "${0}" | grep -qw x86_64; then
# running system = aarch64 or x86_64 # running system = aarch64 or x86_64

View file

@ -4,7 +4,7 @@
. /usr/lib/archboot/release.sh . /usr/lib/archboot/release.sh
[[ -z "${1}" ]] && _usage [[ -z "${1}" ]] && _usage
_root_check _root_check
_check_architecture _architecture_check
echo "Start release creation in ${1} ..." echo "Start release creation in ${1} ..."
_create_iso "$@" || exit 1 _create_iso "$@" || exit 1
_create_boot || exit 1 _create_boot || exit 1