mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-29 08:13:31 +02:00
Reorder gain report checks for better logic
This commit is contained in:
@@ -24,12 +24,11 @@ fi
|
|||||||
if ! $have_rtk && ! $headroom_enabled; then exit 0; fi
|
if ! $have_rtk && ! $headroom_enabled; then exit 0; fi
|
||||||
|
|
||||||
echo "===== claude gains report $(date '+%Y-%m-%d %H:%M:%S') ====="
|
echo "===== claude gains report $(date '+%Y-%m-%d %H:%M:%S') ====="
|
||||||
if $have_rtk; then
|
|
||||||
echo "--- rtk gain ---"
|
|
||||||
rtk gain 2>&1 || echo "[warn] rtk gain failed"
|
|
||||||
fi
|
|
||||||
if $headroom_enabled; then
|
if $headroom_enabled; then
|
||||||
echo "--- headroom savings ---"
|
echo "--- headroom savings ---"
|
||||||
headroom savings 2>&1 || echo "[warn] headroom savings failed"
|
headroom savings 2>&1 || echo "[warn] headroom savings failed"
|
||||||
|
elif $have_rtk; then
|
||||||
|
echo "--- rtk gain ---"
|
||||||
|
rtk gain 2>&1 || echo "[warn] rtk gain failed"
|
||||||
fi
|
fi
|
||||||
echo "===== end gains report ====="
|
echo "===== end gains report ====="
|
||||||
|
|||||||
Reference in New Issue
Block a user