diff --git a/lib/panda_motd/components/service_status.rb b/lib/panda_motd/components/service_status.rb index 2f798d9..53a1304 100644 --- a/lib/panda_motd/components/service_status.rb +++ b/lib/panda_motd/components/service_status.rb @@ -38,7 +38,7 @@ def to_s def parse_services(services) results = {} - cmd_result = `systemctl | grep '\.service'` + cmd_result = `systemctl | grep '\.service'`.delete("^\u{0000}-\u{007F}") if cmd_result.empty? @errors << ComponentError.new(self, 'Unable to parse systemctl output')