tinycm rev 115

Fix plugins listing in dashbord
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 28 05:08:44 2017 +0100 (2017-02-28)
parents 45dbee98543d
children 26809676b304
files plugins/dashboard/dashboard.cgi
line diff
     1.1 --- a/plugins/dashboard/dashboard.cgi	Mon Feb 27 12:19:10 2017 +0100
     1.2 +++ b/plugins/dashboard/dashboard.cgi	Tue Feb 28 05:08:44 2017 +0100
     1.3 @@ -57,14 +57,16 @@
     1.4  EOT
     1.5  			for p in $(ls -1 $plugins)
     1.6  			do
     1.7 -				. $plugins/$p/$p.conf
     1.8 -				cat << EOT
     1.9 +				if [ -f "$plugins/${p}/${p}.conf" ]; then
    1.10 +					. $plugins/${p}/${p}.conf
    1.11 +					cat << EOT
    1.12  	<tr>
    1.13  		<td><a href='?$p'>$PLUGIN</a></td>
    1.14  		<td>$SHORT_DESC</td>
    1.15  		<td>TODO</td>
    1.16  	</tr>
    1.17  EOT
    1.18 +				fi
    1.19  			done
    1.20  			echo "</table></div>"
    1.21  		fi