From 25ca3c5c8e0625ffb26cf5ea634cd81c05dc684a Mon Sep 17 00:00:00 2001 From: Ellington Steanes Date: Sun, 15 Aug 2021 11:09:04 +1000 Subject: [PATCH] limited maximum number of instances --- multiple_mopidy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/multiple_mopidy.sh b/multiple_mopidy.sh index 867e7a8..4013b2a 100644 --- a/multiple_mopidy.sh +++ b/multiple_mopidy.sh @@ -140,6 +140,10 @@ while getopts ":H:N:O:V:rhv" option; do then echo "Please specify a number greater than 0" exit 1 + elif test $numInstance -gt 9 + then + echo "Please specify a number less than 10" + exit 1 fi ;; O)