Fix JSON syntax error in disco_smart when several SMART capable drives are present

This commit is contained in:
Daniel Berteaud 2013-04-15 16:29:13 +02:00
parent 96d0cefd38
commit 79c3a90cf0
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ for DISK in $(smartctl --scan-open | cut -d' ' -f1); do
DISK=$(echo $DISK | sed -e 's|/|\\/|g')
echo -e "\t{\n"
echo -e "\t\t\"{#SMARTDRIVE}\":\"$DISK\""
echo -e "\t}"
echo -e "\t},"
fi
done
echo -e "\n\t]\n}\n"