puppetlabs / support-script-analyzer

3 stars 3 forks source link

(GH-1) Replace gsed with awk #12

Closed m0dular closed 3 years ago

m0dular commented 3 years ago

Prior to this commit, gsed was used to strip the DEBUG messages from the facter output. However, GNU sed is the default on Linux and the gsed command does not exist. This replaces it with a simple awk command to print everything after the first line matching "{".