mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
better ux in listing function
This commit is contained in:
parent
2b81c9ce86
commit
74d0ad1f3e
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ format=${1-shell}
|
|||
json_list_users() {
|
||||
echo '{'
|
||||
fileds_count=$(echo "$fields" | wc -w)
|
||||
for USER in $(ls $VESTA/data/users/); do
|
||||
for USER in $(grep @ /etc/passwd|cut -f 1 -d :); do
|
||||
source $VESTA/data/users/$USER/user.conf
|
||||
if [ -n "$data" ]; then
|
||||
echo -e ' },'
|
||||
|
@ -54,7 +54,7 @@ shell_list_users() {
|
|||
echo
|
||||
fi
|
||||
|
||||
for USER in $(ls $VESTA/data/users/); do
|
||||
for USER in $(grep @ /etc/passwd|cut -f 1 -d :); do
|
||||
source $VESTA/data/users/$USER/user.conf
|
||||
for field in $fields; do
|
||||
eval value=$field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue