From 807154418128d0017edac4148db4c65ef3b86097 Mon Sep 17 00:00:00 2001 From: andryyy Date: Fri, 9 Aug 2019 14:09:30 +0200 Subject: [PATCH] [Update] Save diff file --- update.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update.sh b/update.sh index 21114489..299858a0 100755 --- a/update.sh +++ b/update.sh @@ -328,6 +328,11 @@ if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then exit 0 fi +DIFF_FILE=diff_before_update_$(date +"%Y-%m-%d-%H-%M-%S") +echo -e "\e[32mSaving diff to ${DIFF_FILE}...\e[0m" +git diff --stat > ${DIFF_FILE} +git diff >> ${DIFF_FILE} + echo -e "\e[32mPrefetching images...\e[0m" prefetch_images