Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/ns-plug/files/send-backup
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ sysupgrade -q -k -b "$BACKUP"
rm -rf "$EXTRACTED_BACKUP"
mkdir -p "$EXTRACTED_BACKUP"
tar -zxf "$BACKUP" -C "$EXTRACTED_BACKUP"
find "$EXTRACTED_BACKUP" -type f -exec md5sum {} \; > "$MD5"
find "$EXTRACTED_BACKUP" -type f -exec md5sum {} \; | sort > "$MD5"

# Send backup if there is no md5 saved, or if the md5 changed
if [ ! -f "$MD5_LAST" ] || ! md5sum -c -s "$MD5_LAST"; then
# Send backup if there is no md5 list saved, or if the md5 list changed
if [ ! -f "$MD5_LAST" ] || ! cmp -s "$MD5" "$MD5_LAST"; then
send
fi
Loading