Commit ae036027 authored by Bruno Ribas's avatar Bruno Ribas

Fix change hardcoded specific "$ESC" variable to "$HOST"

As SDI will not be PrD specific host may not be some a school, as 'ESC'
stands for (Escola).
Signed-off-by: default avatarBruno Ribas <ribas@c3sl.ufpr.br>
parent 3292864c
......@@ -3,7 +3,7 @@
function getcolumn()
{
#PRDID=$(awk '{print $1}' <<< $1)
printf "<td>$ESC</td>"
printf "<td>$HOSTID</td>"
}
function getcolumnname()
{
......
......@@ -85,8 +85,8 @@ function generate()
while read HOSTLINE; do
printf "<tr>"
for COLUMN in columns/*; do
ESC=$(awk '{print $1}' <<< $HOSTLINE)
DATA=$DATADIR/$ESC
HOSTID=$(awk '{print $1}' <<< $HOSTLINE)
DATA=$DATADIR/$HOSTID
source $COLUMN
printf "$(getcolumn "$HOSTLINE")"
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment