mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
rename function to _architecture_check
This commit is contained in:
parent
332ca5d3f7
commit
06cdb25c30
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue