aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <np.hardass@gmail.com>2017-03-25 16:44:06 -0400
committerNP-Hardass <np.hardass@gmail.com>2017-03-25 16:44:06 -0400
commitc88ae194f71e6160724028ac1124303eeb31a036 (patch)
treee72ea377faacac4f449c160505d091ba6fa5750f
parentwine.eselect: support --all in unset (diff)
downloadeselect-wine-c88ae194f71e6160724028ac1124303eeb31a036.tar.gz
eselect-wine-c88ae194f71e6160724028ac1124303eeb31a036.tar.bz2
eselect-wine-c88ae194f71e6160724028ac1124303eeb31a036.zip
wine.eselect: Fix bug in unset --allv0.99_rc3
-rw-r--r--wine.eselect5
1 files changed, 3 insertions, 2 deletions
diff --git a/wine.eselect b/wine.eselect
index 5e73cfd..49d6995 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -393,6 +393,7 @@ do_unset() {
fi
local v="wine"
+ local all=false
while [[ $# -gt 0 ]]; do
if [[ $1 == --* ]]; then
@@ -412,9 +413,9 @@ do_unset() {
# Run do_update for all variants
if ${all}; then
- do_update
+ do_unset
for v in ${VARIANTS[@]}; do
- do_update "--${v}"
+ do_unset "--${v}"
done
return 0