arc-functions: remove sysinfo line if empty

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-06 13:51:02 +02:00
parent 2bfced0ca8
commit 1ddad28dea

View File

@ -1222,7 +1222,7 @@ function sysinfo() {
fi
TEXT+="\n Modules loaded: \Zb${MODULESINFO}\Zn"
if [ "${CONFDONE}" == "true" ]; then
TEXT+="\n User Cmdline: \Zb${USERCMDLINEINFO}\Zn"
[ -n "${USERCMDLINEINFO}" ] && TEXT+="\n User Cmdline: \Zb${USERCMDLINEINFO}\Zn"
TEXT+="\n User Synoinfo: \Zb${USERSYNOINFO}\Zn"
fi
TEXT+="\n"