diff options
author | NP-Hardass <np.hardass@gmail.com> | 2017-03-25 15:23:26 -0400 |
---|---|---|
committer | NP-Hardass <np.hardass@gmail.com> | 2017-03-25 15:23:26 -0400 |
commit | 569e878843efc2b0f0e337baa7810153821eb4d2 (patch) | |
tree | e62b91cf140dea213c869a91979cc5de8d39f6f9 /wine.eselect | |
parent | Overhaul, initial commit (diff) | |
download | eselect-wine-569e878843efc2b0f0e337baa7810153821eb4d2.tar.gz eselect-wine-569e878843efc2b0f0e337baa7810153821eb4d2.tar.bz2 eselect-wine-569e878843efc2b0f0e337baa7810153821eb4d2.zip |
wine.eselect: support --all in unsetv0.99_rc2
Diffstat (limited to 'wine.eselect')
-rw-r--r-- | wine.eselect | 12 |
1 files changed, 12 insertions, 0 deletions
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}" |