Liupold / pidswallow

A swallower script using process hierarchy.
Apache License 2.0
43 stars 0 forks source link

Nicer formatting in vomit() using if statements #31

Closed SeerLite closed 4 years ago

SeerLite commented 4 years ago

Personally find it more readable and logical. Feel free to dismiss it if you feel it just clutters the code though.

SeerLite commented 4 years ago

Changed it up a bit. Instead of checking for file before cating, we cat instead and then check if it returned anything. Come to think of it, maybe I should redirect cats stderr to null.

SeerLite commented 4 years ago

At this point idk if I'm just messing around or if this is actually useful : Feel free to revert anything here

Liupold commented 4 years ago

This is good enough. No issue with this.