Projet

Général

Profil

Révision 38835f7a

ID38835f7a62111ebdbc3ea91a47ee2174e7d225f6
Parent adc00722
Enfant d888c31d

Ajouté par Tomaz Solc il y a environ 9 ans

systemd_units: add doublequote around $extinfo

Voir les différences:

plugins/system/systemd_units
64 64
	for state in $states ; do
65 65
		count=$(echo "$tmp" | grep -c "$state$")
66 66
		echo "$state.value $count"
67
		extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1)
67
		extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1 | tr -d '\n')
68 68
		if [ -n "$extinfo" ]; then
69
			echo "$state.extinfo" $extinfo
69
			echo "$state.extinfo" "$extinfo"
70 70
		fi
71 71
	done
72 72
}

Formats disponibles : Unified diff