From dec087a5ce4f9767c828e318dd27ba63297f75d0 Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Sun, 18 Mar 2012 12:40:03 +0100 Subject: [PATCH] using bash instead of ksh. it should be quite compatible. better would be a proper port to sh (or better, perl) --- plugins/glassfish/glassfish_counters_ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/glassfish/glassfish_counters_ b/plugins/glassfish/glassfish_counters_ index 2e9ce701..1bd26d7d 100644 --- a/plugins/glassfish/glassfish_counters_ +++ b/plugins/glassfish/glassfish_counters_ @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/bash # -*- sh -*- : << =cut @@ -92,4 +92,4 @@ awk 'BEGIN{ FS="[ = ]" } /-count / { nwhat = split($1, what, ".") gsub(/-count/, "", what[nwhat]) print what[nwhat] ".value=" $NF} -' \ No newline at end of file +'