mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-11-08 21:24:54 -05:00
fixes for dash
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
load_reporter_with_prefix () {
|
||||
local prefix=$1
|
||||
local file=$2
|
||||
# dash will error if this variable is defined as `local`
|
||||
local content
|
||||
|
||||
content=$(sed \
|
||||
-e 's/^[[:space:]]*\(init[ ]*()[ ]*{\)/'"$prefix"'\1/' \
|
||||
-e 's/^[[:space:]]*\(report[ ]*()[ ]*{\)/'"$prefix"'\1/' \
|
||||
@@ -16,6 +17,7 @@ load_reporter_with_prefix () {
|
||||
load_metric_with_prefix () {
|
||||
local prefix=$1
|
||||
local file=$2
|
||||
local content
|
||||
|
||||
# dash will error if this variable is defined as `local`
|
||||
content=$(sed \
|
||||
|
||||
Reference in New Issue
Block a user