2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-02 00:41:42 +00:00

fix(syslog): guard expanded configuration cleanup

This commit is contained in:
Vinícius Ferrão
2026-09-25 01:29:34 -03:00
parent 4900bd2808
commit 29ff3ab3f2
+3 -1
View File
@@ -210,7 +210,9 @@ config_native_rsyslog_receiver()
' "$expanded" >> "$1"
status=$?
fi
rm -f "$expanded"
if [ -n "$expanded" ]; then
rm -f "$expanded"
fi
return $status
}