3 # will stop the script for any error
17 set | grep -v "^_=" | grep -v "^PIPESTATUS=" | grep -v "^BASH_LINENO="
24 # make sure they don't differ
25 diff "$tmp1" "$tmp2" >/dev/null 2>&1
28 # they differ, we cannot do the check
29 echo >&2 "$me: cannot check with diff."
33 # do it again, now including the script
36 # include the plugin and its config
42 echo >&2 "$me: cannot load config file $conf"
51 echo >&2 "$me: cannot load chart file $chart"
56 # remove all variables starting with the plugin name
57 myset | grep -v "^$name" >"$tmp2"
59 if [ $can_diff -eq 1 ]
61 # check if they are different
62 # make sure they don't differ
63 diff "$tmp1" "$tmp2" >&2