mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01: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}"
|
||||
echo "$TITLE found in $FOLDER"
|
||||
# If non null
|
||||
if [[ ${#FOLDER} -gt 2 ]]; then
|
||||
if [[ "${#FOLDER}" -gt 2 ]]; then
|
||||
cp Stats3 StatsTmp
|
||||
sed -n "/Date/p" Stats3 > "$FOLDER"/StatsTmp
|
||||
sed -n "/$TITLE/p" Stats3 >> "$FOLDER"/StatsTmp
|
||||
# Go in folder
|
||||
cd $FOLDER || true
|
||||
cd "$FOLDER" || true
|
||||
cat StatsTmp
|
||||
# Transpose data
|
||||
awk '
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user