mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
Fix codefactor-io / CodeFactor warnings
Use $(...) notation instead of legacy backticked `...`. (SC2006)
This commit is contained in:
parent
cdac4e07f7
commit
5cf436056f
@ -29,7 +29,7 @@ TRAPD_CONF="/etc/snmp/snmptrapd.conf"
|
|||||||
LOCKFILE="/var/lock/subsys/bmc-snmp-proxy"
|
LOCKFILE="/var/lock/subsys/bmc-snmp-proxy"
|
||||||
BMC_INFO="/run/bmc-info"
|
BMC_INFO="/run/bmc-info"
|
||||||
|
|
||||||
IPMITOOL=`which ipmitool`
|
IPMITOOL=$(which ipmitool)
|
||||||
|
|
||||||
#Default config
|
#Default config
|
||||||
BMC_COMMUNITY="public"
|
BMC_COMMUNITY="public"
|
||||||
@ -158,7 +158,7 @@ pick_alert_dest()
|
|||||||
{
|
{
|
||||||
test_ip="$1"
|
test_ip="$1"
|
||||||
# We have 4 IPv4 and 4 IPv6 alert dest. We will set IPv4 for now.
|
# We have 4 IPv4 and 4 IPv6 alert dest. We will set IPv4 for now.
|
||||||
for ALERT_DEST in `seq 1 4`
|
for ALERT_DEST in $(seq 1 4)
|
||||||
do
|
do
|
||||||
temp_ip=$(${IPMITOOL} lan alert print ${CHANNEL} ${ALERT_DEST}\
|
temp_ip=$(${IPMITOOL} lan alert print ${CHANNEL} ${ALERT_DEST}\
|
||||||
2>/dev/null| sed -n "s#^Alert IP Address.*: ##p")
|
2>/dev/null| sed -n "s#^Alert IP Address.*: ##p")
|
||||||
@ -178,7 +178,7 @@ config_bmc_alert_dest()
|
|||||||
{
|
{
|
||||||
# call with enable|disable
|
# call with enable|disable
|
||||||
# Pick the first active LAN channel
|
# Pick the first active LAN channel
|
||||||
for CHANNEL in `seq 1 14`
|
for CHANNEL in $(seq 1 14)
|
||||||
do
|
do
|
||||||
[ $(${IPMITOOL} -I open channel info ${CHANNEL} 2>/dev/null \
|
[ $(${IPMITOOL} -I open channel info ${CHANNEL} 2>/dev/null \
|
||||||
| grep -q "802\.3") ] || break
|
| grep -q "802\.3") ] || break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user