Improve safety and CLI fidelity for everyday use
Drop default --noconfirm (opt-in via --noconfirm), fix --noremovemake, forward pacman argv intact for -R/-D/-F/-T/-U, deepen PKGBUILD review, show an install plan before building, and add shellcheck CI plus unit tests. Co-authored-by: Frank Vitrano <WHC2006@users.noreply.github.com>
This commit is contained in:
co-authored by
Frank Vitrano
parent
d0f2cfe335
commit
bba71040d6
@@ -10,6 +10,7 @@ MIAUR_CLEANAFTER="${MIAUR_CLEANAFTER:-0}"
|
||||
MIAUR_REMOVEMAKE="${MIAUR_REMOVEMAKE:-1}"
|
||||
MIAUR_BOTTOMUP="${MIAUR_BOTTOMUP:-0}"
|
||||
MIAUR_SUDOLOOP="${MIAUR_SUDOLOOP:-1}"
|
||||
MIAUR_NOCONFIRM="${MIAUR_NOCONFIRM:-0}"
|
||||
MIAUR_MFLAGS="${MIAUR_MFLAGS:--si}"
|
||||
MIAUR_SORTBY="${MIAUR_SORTBY:-votes}"
|
||||
MIAUR_SEARCHBY="${MIAUR_SEARCHBY:-name-desc}"
|
||||
@@ -61,6 +62,7 @@ miaur_load_config() {
|
||||
RemoveMake) MIAUR_REMOVEMAKE=$(_bool_val "$val") ;;
|
||||
BottomUp) MIAUR_BOTTOMUP=$(_bool_val "$val") ;;
|
||||
SudoLoop) MIAUR_SUDOLOOP=$(_bool_val "$val") ;;
|
||||
Noconfirm | NoConfirm) MIAUR_NOCONFIRM=$(_bool_val "$val") ;;
|
||||
MFlags) MIAUR_MFLAGS=$val ;;
|
||||
SortBy) MIAUR_SORTBY=$val ;;
|
||||
SearchBy) MIAUR_SEARCHBY=$val ;;
|
||||
|
||||
Reference in New Issue
Block a user