File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ source $VESTA/conf/vesta.conf
1818
1919# Json function
2020json_list_wtpl () {
21- templates=$( ls -t $WEBTPL /$WEB_SYSTEM /$WEB_BACKEND /)
22- templates=$( echo " $templates " | grep " \.tpl" | cut -f 1 -d ' . ' )
21+ templates=$( ls -v $WEBTPL /$WEB_SYSTEM /$WEB_BACKEND /)
22+ templates=$( echo " $templates " | grep ' \.tpl' | sed ' s/\.tpl$// ' )
2323 t_counter=$( echo " $templates " | wc -w)
2424 i=1
2525 echo ' ['
@@ -36,8 +36,8 @@ json_list_wtpl() {
3636
3737# Shell function
3838shell_list_wtpl () {
39- templates=$( ls -t $WEBTPL /$WEB_SYSTEM /$WEB_BACKEND /)
40- templates=$( echo " $templates " | grep " \.tpl" | cut -f 1 -d ' . ' )
39+ templates=$( ls -v $WEBTPL /$WEB_SYSTEM /$WEB_BACKEND /)
40+ templates=$( echo " $templates " | grep ' \.tpl' | sed ' s/\.tpl$// ' )
4141 if [ -z " $nohead " ]; then
4242 echo " Templates"
4343 echo " ----------"
You can’t perform that action at this time.
0 commit comments