From 569e878843efc2b0f0e337baa7810153821eb4d2 Mon Sep 17 00:00:00 2001 From: NP-Hardass Date: Sat, 25 Mar 2017 15:23:26 -0400 Subject: wine.eselect: support --all in unset --- wine.eselect | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'wine.eselect') diff --git a/wine.eselect b/wine.eselect index 3a69218..5e73cfd 100644 --- a/wine.eselect +++ b/wine.eselect @@ -399,6 +399,8 @@ do_unset() { local flag="${1#--}" if has "${flag}" ${VARIANTS[@]}; then v=${flag} + elif [[ "${flag}" == "all" ]]; then + all=true else die -q "Invalid variant" fi @@ -408,6 +410,16 @@ do_unset() { shift done + # Run do_update for all variants + if ${all}; then + do_update + for v in ${VARIANTS[@]}; do + do_update "--${v}" + done + + return 0 + fi + local v_arg if [[ ${v} != "wine" ]]; then v_arg="--${v}" -- cgit v1.2.3-65-gdbad