From 1a08b252ada471dc36d00b62ef36164130c379a2 Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Wed, 29 Apr 2020 19:19:36 +0000 Subject: [PATCH] added sorting, for more consistent output. --- crons/backup-log.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crons/backup-log.sh b/crons/backup-log.sh index a138f68..bb95286 100755 --- a/crons/backup-log.sh +++ b/crons/backup-log.sh @@ -6,11 +6,11 @@ source "${LOCATION}/../config.sh" cd "${BACKUP_DIRECTORY}" -backups=`find * -type f | xargs du -h` +backups=`find * -type f | sort | xargs du -h` echo "${backups}" ${LOCATION}/../discord.sh general "${backups}" -hashes=`find * -type f | xargs md5sum` +hashes=`find * -type f | sort | xargs md5sum` echo "${hashes}" ${LOCATION}/../discord.sh general "${hashes}"