delete downloaded ioping binary if script has been run straight from a pipe

This commit is contained in:
Nils Steinger 2017-02-25 18:34:35 +01:00
parent 4880659ff5
commit 08fc49eac3
1 changed files with 4 additions and 0 deletions

View File

@ -155,3 +155,7 @@ fi
printf '%s\n' '-------------------------'
printf '\n'
# delete downloaded ioping binary if script has been run straight from a pipe
# (rather than a downloaded file)
[[ -t 0 ]] || rm -f ioping.static