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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user