mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
list by creation date
This commit is contained in:
parent
9ba91b4b02
commit
21c44a8ab9
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ source $VESTA/func/main.sh
|
||||||
# Json function
|
# Json function
|
||||||
json_list_ips() {
|
json_list_ips() {
|
||||||
echo '{'
|
echo '{'
|
||||||
ip_list=$(ls $VESTA/data/ips/)
|
ip_list=$(ls --sort=time $VESTA/data/ips/)
|
||||||
fileds_count=$(echo "$fields" | wc -w)
|
fileds_count=$(echo "$fields" | wc -w)
|
||||||
for IP in $ip_list; do
|
for IP in $ip_list; do
|
||||||
ip_data=$(cat $VESTA/data/ips/$IP)
|
ip_data=$(cat $VESTA/data/ips/$IP)
|
||||||
|
|
|
@ -19,7 +19,7 @@ source $VESTA/func/main.sh
|
||||||
json_list_pkgs() {
|
json_list_pkgs() {
|
||||||
echo '{'
|
echo '{'
|
||||||
fileds_count=$(echo "$fields" | wc -w)
|
fileds_count=$(echo "$fields" | wc -w)
|
||||||
for package in $(ls -t $VESTA/data/packages |grep .pkg); do
|
for package in $(ls --sort=time $VESTA/data/packages |grep .pkg); do
|
||||||
PACKAGE=${package/.pkg/}
|
PACKAGE=${package/.pkg/}
|
||||||
pkg_data=$(cat $VESTA/data/packages/$package)
|
pkg_data=$(cat $VESTA/data/packages/$package)
|
||||||
eval $pkg_data
|
eval $pkg_data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue