ionice may not be available

This commit is contained in:
Vincent Riquer 2015-03-10 10:24:33 +01:00
parent 3fd7a11bed
commit 6510eb17fc

View File

@ -24,6 +24,8 @@ getConfigGeneral() {
unset expr unset expr
;; ;;
'ionice') 'ionice')
if which ionice >/dev/null
then
read class niceness <<<"$value" read class niceness <<<"$value"
case $class in case $class in
1) 1)
@ -65,6 +67,7 @@ getConfigGeneral() {
exit $EIONICE exit $EIONICE
;; ;;
esac esac
fi
;; ;;
'temporary-directory') 'temporary-directory')
tempdir="$value" tempdir="$value"