jasonacox / Powerwall-Dashboard

Grafana Monitoring Dashboard for Tesla Solar and Powerwall Systems
MIT License
270 stars 57 forks source link

V3.0.4 - Fix Upgrade for MacOS #401

Closed jasonacox closed 6 months ago

jasonacox commented 6 months ago

Fix upgrade.sh to address issue where get_profile() function incorrectly reads compose.env causing upgrade failure. Closes issue #400.

mcbirse commented 6 months ago

Hi Jason, but I think this fix should have been applied to the other scripts as well.

The same line is used in 4 other scripts and were not updated (compose-dash.sh, setup.sh, verify.sh, and weather.sh).

I pushed the same change to those scripts - hope that is okay to do.

i.e. from:

IFS=',' read -a PROFILES <<< ${COMPOSE_PROFILES}

to:

IFS=',' read -ra PROFILES <<< "${COMPOSE_PROFILES}"
jasonacox commented 6 months ago

Yes, thank you!!!