From c851ff14e0f09b7dd36f9320b9067826869448ec Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Mon, 30 Sep 2024 00:58:31 +0200 Subject: [PATCH] cleanup --- snmpd-oid-daemon.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snmpd-oid-daemon.sh b/snmpd-oid-daemon.sh index 88a439d..7d27b36 100644 --- a/snmpd-oid-daemon.sh +++ b/snmpd-oid-daemon.sh @@ -23,7 +23,7 @@ function usage() { Usage: $SCRIPT [-b BASE_OID] [-d] [-m FILE] [-n] [-h] Mandatory arguments to long options are mandatory for short options too. - -b, --base=BASE_OID base OID to operate on, default is '${BASE_OID}' + -b, --base=BASE_OID base OID to operate on, default is '$BASE_OID' -d, --debug enable debug output -h, --help display this help and exit -m, --debug-marker=FILE debug logs will enabled or disabled during runtime @@ -31,7 +31,7 @@ Mandatory arguments to long options are mandatory for short options too. -o, --overload-script=FILE source file to add or overload data gathering functions -n, --no-log disable logging -t, --tag mark every line to be logged with the specified tag, - default is '${LOG_TAG}' + default is '$LOG_TAG' EOF } @@ -185,7 +185,7 @@ function set_oid_list { else for row_decl in "${DATA[@]}"; do local -a row=$(strip_declaration <<<"$row_decl") - col_id=${col_start_idx} + col_id=$col_start_idx type_id=0 for value in "${row[@]}"; do echo $base_oid.$col_id.$row_id