diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-12-15 09:24:18 +0100 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-12-15 09:24:18 +0100 |
commit | 271c04e95440141a80e1fc15d6f2353bfa072062 (patch) | |
tree | bd9f03fe580a6221db7cda9fa801404ad856345d | |
parent | 3da84a1aadfa781ade427bf8d53c9b9641957f6a (diff) | |
download | hardlinkedBackups-271c04e95440141a80e1fc15d6f2353bfa072062.tar.xz |
do not check for name of running backup
* it can be anything, if called via symlink
-rwxr-xr-x | last-backups.in | 2 |
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='' |