diff options
Diffstat (limited to 'backup-progress.in')
-rwxr-xr-x | backup-progress.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backup-progress.in b/backup-progress.in index 6b3d513..a2063b8 100755 --- a/backup-progress.in +++ b/backup-progress.in @@ -10,7 +10,7 @@ declare -A sz for backupID in "${!backups[@]}"; do [ -s "/tmp/${backupID}.pid" ] || continue - kill -0 $(cat "/tmp/${backupID}.pid") || continue + [ -d "/proc/$(cat "/tmp/${backupID}.pid")" ] || continue dir="${backups["${backupID}"]%% *}" dir="${dir%/}" nm[${#nm[@]}]=$( |