Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/eselect-java:master commit in: src/modules/
Date: Fri, 24 Jun 2022 10:33:40
Message-Id: 1656054273.c98ecbb98935a5abaafbf63694be22ba6d940538.flow@gentoo
1 commit: c98ecbb98935a5abaafbf63694be22ba6d940538
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 07:04:13 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 07:04:33 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/eselect-java.git/commit/?id=c98ecbb9
7
8 java-vm.eselect: whitespaces fixes
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 src/modules/java-vm.eselect.in | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/src/modules/java-vm.eselect.in b/src/modules/java-vm.eselect.in
16 index 552062f..e332c5a 100644
17 --- a/src/modules/java-vm.eselect.in
18 +++ b/src/modules/java-vm.eselect.in
19 @@ -68,7 +68,7 @@ do_list() {
20 local found_build_only
21 if [[ -n ${targets[@]} ]] ; then
22 local i system_name user_name
23 -
24 +
25 [[ -L ${VM_SYSTEM} ]] && system_name=$(sym_to_vm "${VM_SYSTEM}")
26 [[ -L ${VM_USER} ]] && user_name=$(sym_to_vm "${VM_USER}")
27
28 @@ -133,7 +133,7 @@ do_set() {
29 die -q "Sorry, you don't have enough permission to set system"
30 fi
31 elif [[ ${1} == "user" ]]; then
32 - if [[ ${UID} != 0 ]]; then
33 + if [[ ${UID} != 0 ]]; then
34 my_set "${VM_USER}" "${2}" ${ifunset}
35 else
36 die -q "Sorry, you cannot set a user VM as root. Set the system VM instead"