From 8e5bbbd37f41e674360d12f7805dbe329bd7508d Mon Sep 17 00:00:00 2001 From: arbala Date: Fri, 31 Jan 2025 14:30:54 +0100 Subject: [PATCH] remove use of cat for map-backhaul file --- map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul b/map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul index 37e899eeb..ab196c314 100755 --- a/map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul +++ b/map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul @@ -63,7 +63,7 @@ else [ $dhcp -eq 1 ] || exit 0 else [ -f $map_bh_file ] || exit 0 - cur_bh="$(cat $map_bh_file | jsonfilter -e @.ifname)" + cur_bh="$(jsonfilter -e @.ifname < "$map_bh_file" 2>/dev/null)" || exit 0 [ "$cur_bh" = "$PORT" ] || exit 0 fi ########################################################