mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
Update helper_stats_graphs.yaml
This commit is contained in:
5
.github/workflows/helper_stats_graphs.yaml
vendored
5
.github/workflows/helper_stats_graphs.yaml
vendored
@@ -157,12 +157,13 @@ jobs:
|
|||||||
FOLDER="${FOLDER:2}"
|
FOLDER="${FOLDER:2}"
|
||||||
echo "$TITLE found in $FOLDER"
|
echo "$TITLE found in $FOLDER"
|
||||||
# If non null
|
# If non null
|
||||||
if [[ ${#FOLDER} -gt 2 ]]; then
|
if [[ "${#FOLDER}" -gt 2 ]]; then
|
||||||
cp Stats3 StatsTmp
|
cp Stats3 StatsTmp
|
||||||
sed -n "/Date/p" Stats3 > "$FOLDER"/StatsTmp
|
sed -n "/Date/p" Stats3 > "$FOLDER"/StatsTmp
|
||||||
sed -n "/$TITLE/p" Stats3 >> "$FOLDER"/StatsTmp
|
sed -n "/$TITLE/p" Stats3 >> "$FOLDER"/StatsTmp
|
||||||
# Go in folder
|
# Go in folder
|
||||||
cd $FOLDER || true
|
cd "$FOLDER" || true
|
||||||
|
cat StatsTmp
|
||||||
# Transpose data
|
# Transpose data
|
||||||
awk '
|
awk '
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user