Integrity check can now ignore symbolic links
backup.sh / bash (push) Successful in 13s
Details
backup.sh / bash (push) Successful in 13s
Details
This commit is contained in:
parent
b520b6b72c
commit
e881798dad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue