summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2023-12-15 09:24:18 +0100
committerErich Eckner <erich.eckner.ext@bestsecret.com>2023-12-15 09:24:18 +0100
commit271c04e95440141a80e1fc15d6f2353bfa072062 (patch)
treebd9f03fe580a6221db7cda9fa801404ad856345d
parent3da84a1aadfa781ade427bf8d53c9b9641957f6a (diff)
downloadhardlinkedBackups-271c04e95440141a80e1fc15d6f2353bfa072062.tar.xz
do not check for name of running backup
* it can be anything, if called via symlink
-rwxr-xr-xlast-backups.in2
1 files changed, 1 insertions, 1 deletions
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=''