From 189ea564de42e0b2545f0c40e56532e6be48fbbd Mon Sep 17 00:00:00 2001 From: Suvendhu Hansa Date: Fri, 12 May 2023 06:36:10 +0000 Subject: [PATCH] scripts: fix typos in IPLayeCapacity --- libbbfdm/scripts/iplayercap | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libbbfdm/scripts/iplayercap b/libbbfdm/scripts/iplayercap index 6f3b1aeb..f6a4d6be 100644 --- a/libbbfdm/scripts/iplayercap +++ b/libbbfdm/scripts/iplayercap @@ -131,7 +131,7 @@ iplayercap_launch() { options="$options -X" fi - if [ -n "${ipdb_enable}" ] && [ "${ipdv_enable}" -eq 1 ]; then + if [ -n "${ipdv_enable}" ] && [ "${ipdv_enable}" -eq 1 ]; then options="$options -o" fi @@ -176,7 +176,8 @@ iplayercap_launch() { fi fi - output=$(udpst "${options}" -f jsonf "${host}" 2>&1) + cmd="udpst ${options} -f jsonf ${host}" + output=$(${cmd} 2>&1) if [ "$?" -eq 127 ] || [ "$?" -eq 255 ]; then iplayercap_error "Error_Internal" "${proto}" return @@ -321,8 +322,8 @@ iplayercap_launch() { if json_is_a ModalResult array; then json_select ModalResult if [ "$?" -eq 0 ]; then - local idx=1 - local inst=0 + idx=1 + inst=0 while json_is_a ${idx} object do json_select ${idx} @@ -375,8 +376,8 @@ iplayercap_launch() { if json_is_a IncrementalResult array; then json_select IncrementalResult if [ "$?" -eq 0 ]; then - local idx=1 - local inst=0 + idx=1 + inst=0 while json_is_a ${idx} object do json_select ${idx}