summaryrefslogtreecommitdiff
path: root/last-backups.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-30 11:39:51 +0200
committerErich Eckner <git@eckner.net>2021-03-30 11:39:51 +0200
commitd92c474812f0fdfff2d9393b6c9923a8d091ba2a (patch)
tree60d492dd10a09f6e435580963b496c2ac1e3e4f3 /last-backups.in
parent2f0a73433566be6de4d24483fa57a97e25a39204 (diff)
downloadhardlinkedBackups-d92c474812f0fdfff2d9393b6c9923a8d091ba2a.tar.xz
last-backups.in: fix pgrep regex
Diffstat (limited to 'last-backups.in')
-rwxr-xr-xlast-backups.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/last-backups.in b/last-backups.in
index d7b9ec8..ac7f01a 100755
--- a/last-backups.in
+++ b/last-backups.in
@@ -58,7 +58,7 @@ do
[ "${lbu}" == "" ] && lbu="1970_01_01"
delta=$[$(date +%s) - $(date -d $(echo ${lbu} | sed "s/_//g") +%s)]
namen[${#namen[@]}]="$(basename $(echo ${dest} | sed "s#/\(${recognSubdirRegex}\)\$#_\1#" | sed "s#/rsync\$##; s#/duplicity\$##"))"
- if [ -f "/tmp/${backupID}.pid" ] && pgrep -x backup | grep -qxF "$(cat "/tmp/${backupID}.pid")"; then
+ if [ -f "/tmp/${backupID}.pid" ] && pgrep '(^|/|\s)backup\S*$' | grep -qxF "$(cat "/tmp/${backupID}.pid")"; then
laeuft='_laeuft'
else
laeuft=''