mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 11:30:37 +02:00
dialog syntax fixes
This commit is contained in:
parent
5edffd9f33
commit
2286c1d3d9
8 changed files with 28 additions and 28 deletions
|
@ -34,8 +34,8 @@ _geteditor() {
|
|||
"NANO") _EDITOR="nano"
|
||||
if ! [[ -f "${_DESTDIR}/usr/bin/nano" ]]; then
|
||||
_PACKAGES=(nano)
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
_dialog --no-mouse --title " Autoconfiguration " --infobox "Enable nano's syntax highlighting on installed system..." 3 70
|
||||
rg -q '^include' "${_DESTDIR}/etc/nanorc" || \
|
||||
|
@ -46,8 +46,8 @@ _geteditor() {
|
|||
"NEOVIM") _EDITOR="nvim"
|
||||
if ! [[ -f "${_DESTDIR}/usr/bin/nvim" ]]; then
|
||||
_PACKAGES=(neovim)
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi
|
||||
;;
|
||||
|
|
|
@ -142,8 +142,8 @@ _uefi_common() {
|
|||
fi
|
||||
#shellcheck disable=SC2128
|
||||
if [[ -n "${_PACKAGES}" ]]; then
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi
|
||||
# automounted /boot and ESP needs to be mounted first, trigger mount with ls
|
||||
|
@ -248,8 +248,8 @@ _install_bootloader() {
|
|||
if ! [[ -f "${_DESTDIR}/boot/${_UCODE}" ]]; then
|
||||
#shellcheck disable=SC2206
|
||||
_PACKAGES=(${_UCODE_PKG})
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -27,14 +27,14 @@ _grub_common_before() {
|
|||
_abort_bcachefs_bootpart || return 1
|
||||
if [[ ! -d "${_DESTDIR}/usr/lib/grub" ]]; then
|
||||
_PACKAGES=(grub)
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi
|
||||
if [[ ! -f "${_DESTDIR}/usr/share/grub/ter-u16n.pf2" ]]; then
|
||||
_PACKAGES=(terminus-font)
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
_limine_common() {
|
||||
if [[ ! -f "${_DESTDIR}/usr/bin/limine" ]]; then
|
||||
_PACKAGES=(limine)
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
_refind_uefi() {
|
||||
if [[ ! -f "${_DESTDIR}/usr/bin/refind-install" ]]; then
|
||||
_PACKAGES=(refind)
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi
|
||||
_dialog --no-mouse --infobox "Setting up rEFInd now..." 3 60
|
||||
|
|
|
@ -37,8 +37,8 @@ _uki_install() {
|
|||
_uki_uefi() {
|
||||
if [[ ! -f "${_DESTDIR}/usr/lib/systemd/ukify" ]]; then
|
||||
_PACKAGES=(systemd-ukify)
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi
|
||||
_uki_config
|
||||
|
|
|
@ -142,17 +142,17 @@ _user_management() {
|
|||
"BASH") _SHELL="bash"
|
||||
if ! [[ -f "${_DESTDIR}/usr/share/bash-completion/completions/arch" ]]; then
|
||||
_PACKAGES=(bash-completion)
|
||||
#shellcheck disable=SC2145
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " \
|
||||
--gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
--gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi ;;
|
||||
"ZSH") _SHELL="zsh"
|
||||
if ! [[ -f "${_DESTDIR}/usr/bin/zsh" ]]; then
|
||||
_PACKAGES=(grml-zsh-config)
|
||||
#shellcheck disable=SC2145
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " \
|
||||
--gauge "Installing package(s):\n${_PACKAGES[@]}..." 7 75 0
|
||||
--gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 7 75 0
|
||||
_pacman_error
|
||||
fi ;;
|
||||
esac
|
||||
|
|
|
@ -16,8 +16,8 @@ _run_pacman(){
|
|||
[[ ! -d "${_DESTDIR}${_PACMAN_LIB}" ]] && mkdir -p "${_DESTDIR}${_PACMAN_LIB}"
|
||||
: > /.archboot
|
||||
_pacman &
|
||||
#shellcheck disable=SC2145
|
||||
_progress_wait "0" "99" "Installing package(s):\n${_PACKAGES[@]}..." "2"
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_progress_wait "0" "99" "Installing package(s):\n$(echo ${_PACKAGES[@]})..." "2"
|
||||
# pacman finished, display scrollable output
|
||||
if [[ -e "/tmp/.pacman-success" ]]; then
|
||||
_progress "100" "Package installation complete." 6 75
|
||||
|
@ -65,10 +65,10 @@ _install_packages() {
|
|||
# add packages from Archboot defaults
|
||||
. /etc/archboot/defaults
|
||||
_auto_packages
|
||||
#shellcheck disable=SC2145
|
||||
_dialog --title " Summary " --yesno "Next step will install the following packages for a minimal system:\n${_PACKAGES[@]}\n\nYou can watch the progress on your ${_VC} console." 9 75 || return 1
|
||||
#shellcheck disable=SC2145
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES[@]}..." 8 75 0
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_dialog --title " Summary " --yesno "Next step will install the following packages for a minimal system:\n$(echo ${_PACKAGES[@]})\n\nYou can watch the progress on your ${_VC} console." 9 75 || return 1
|
||||
#shellcheck disable=SC2116,SC2068
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n$(echo ${_PACKAGES[@]})..." 8 75 0
|
||||
_pacman_error || return 1
|
||||
_NEXTITEM=3
|
||||
_chroot_mount
|
||||
|
|
Loading…
Reference in a new issue