benice support for Mac (#145)

This commit is contained in:
Cyryl Płotnicki 2017-10-31 16:52:30 +00:00 committed by GitHub
parent 885603c7e6
commit 667986fc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
#!/bin/bash
ionice -c3 nice -n20 "$@"
set -e
IONICE="ionice -c3"
if [[ "$OSTYPE" == "darwin"* ]]; then
IONICE=""
fi
$IONICE nice -n20 "$@"