systemctl list-unit-files 2>/dev/null | grep -q node_exporter systemctl list-unit-files 2>/dev/null | grep -q hwmon.timer
Optimization: Cache the output once:
UNIT_FILES=$(systemctl list-unit-files 2>/dev/null)
No dependencies set.
The note is not visible to the blocked user.
Called in multiple functions:
systemctl list-unit-files 2>/dev/null | grep -q node_exporter
systemctl list-unit-files 2>/dev/null | grep -q hwmon.timer
Optimization: Cache the output once:
UNIT_FILES=$(systemctl list-unit-files 2>/dev/null)