Integrity check can now ignore symbolic links
backup.sh / bash (push) Successful in 13s Details

This commit is contained in:
Marco Cetica 2024-04-04 15:31:55 +02:00
parent b520b6b72c
commit e881798dad
Signed by: marco
GPG Key ID: 45060A949E90D0FD
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ make_backup() {
if [ "$BACKUP_SH_SHA256" -eq 1 ]; then
shopt -s globstar dotglob
for file in "$BACKUP_SH_SUBDIR"/**/*; do
# Skip directories
[ -d "$file" ] && continue
# Skip symbol links and directories
[ -d "$file" ] || [ -L "$file" ] && continue
gethash "$file" >> "$BACKUP_SH_CHECKSUM_FILE"
done
shopt -u globstar dotglob