[fix] Only move error log if present

This commit is contained in:
William Wernert
2020-12-09 09:50:30 -05:00
parent 652c4d49c9
commit 950c05e53d

View File

@@ -63,7 +63,7 @@ if [[ -f /root/accept_changes ]]; then
# Move last setup log to backup
mv "$setup_log" "$setup_log.bak"
mv "$error_log" "$error_log.bak"
[ -f "$error_log" ] && mv "$error_log" "$error_log.bak"
fi