Last active
August 20, 2020 23:33
-
-
Save iquiw/5314d2ff5a621ab52fed4cab4338f149 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
TMPOUT=$(mktemp /tmp/diag.XXXXXX) | |
trap 'rm "$TMPOUT"' 0 1 2 3 15 | |
"/usr/bin/$1" -a -o "$TMPOUT" /dev/stdin | |
cat "$TMPOUT" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment