From 09021e52056cfc5aae8c5e8cfe7f7854fac67374 Mon Sep 17 00:00:00 2001 From: glixx Date: Mon, 1 Jul 2019 05:50:41 +0000 Subject: [PATCH] Check if timidity was compiled with -OO --- tools/timidity/pianobooster-timidity | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/timidity/pianobooster-timidity b/tools/timidity/pianobooster-timidity index c8d98f3..8af023c 100755 --- a/tools/timidity/pianobooster-timidity +++ b/tools/timidity/pianobooster-timidity @@ -13,7 +13,12 @@ then exit 1 fi -timidity -iA -OO & +if [ ! -z "`timidity -help|grep '\-OO'`" ] +then + timidity -iA -OO & +else + timidity -iA -Os & +fi PID=$!