fix: Check if logfile exists (#1046)

This commit is contained in:
Kroese 2025-10-07 02:21:49 +02:00 committed by GitHub
parent fc7ab22741
commit fd5ec52226
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,7 +327,7 @@ configurePasst() {
tail -fn +0 "$log" &
else
if [[ "$DEBUG" == [Yy1]* ]]; then
cat "$log" && echo ""
[ -f "$log" ] && cat "$log" && echo ""
fi
fi