From 271c04e95440141a80e1fc15d6f2353bfa072062 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 15 Dec 2023 09:24:18 +0100 Subject: do not check for name of running backup * it can be anything, if called via symlink --- last-backups.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/last-backups.in b/last-backups.in index a636f46..84e8f64 100755 --- a/last-backups.in +++ b/last-backups.in @@ -71,7 +71,7 @@ do ' ) ) - if [ -f "/tmp/${backupID}.pid" ] && pgrep '(^|/|\s)hardlinked-backup\S*$' | grep -qxF "$(cat "/tmp/${backupID}.pid")"; then + if [ -f "/tmp/${backupID}.pid" ] && [ -d "/proc/$(cat "/tmp/${backupID}.pid")" ]; then laeuft='_laeuft' else laeuft='' -- cgit v1.2.3-70-g09d2