list by creation date

This commit is contained in:
Serghey Rodin 2015-07-01 01:34:06 +03:00
commit 21c44a8ab9
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ source $VESTA/func/main.sh
json_list_pkgs() {
echo '{'
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/}
pkg_data=$(cat $VESTA/data/packages/$package)
eval $pkg_data