fix(battery): support running with nounset option

This commit is contained in:
Daniel McCormack 2026-04-21 16:09:42 +12:00
commit 786eea24c6

View file

@ -66,7 +66,7 @@ if [[ "$OSTYPE" = darwin* ]]; then
if [[ "${BATTERY_SHOW_WATTS}" = "true" ]] ; then
watts=$(get_charger_power)
fi
echo "${watts}${BATTERY_CHARGING-⚡️}"
echo "${watts:-}${BATTERY_CHARGING-⚡️}"
fi
}