Some bash versions don't support negative lengths

Fix to make the service string work on these versions of bash too

Change-Id: Ibb9868ea7bf44480be76a8ea9d7d9fbc278a8ef3
This commit is contained in:
Bob Ball 2013-07-30 09:43:17 +01:00
parent 6c84463071
commit 46287d8d71

View File

@ -1116,7 +1116,7 @@ function service_check() {
for service in $failures; do
service=`basename $service`
service=${service::-8}
service=${service%.failure}
echo "Error: Service $service is not running"
done