Repeated Command Calls #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)