From b64598358dd65441df415ee175de30458d170d6a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 6 May 2020 01:15:40 +0800 Subject: [PATCH] Improved compress tool & Updated the Footer. --- _includes/footer.html | 5 +++-- tools/js-compress.sh | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 4620300..da33c14 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -23,8 +23,9 @@
Powered by Jekyll - with theme - Chirpy. + with + Chirpy + theme.
diff --git a/tools/js-compress.sh b/tools/js-compress.sh index 60bfa2c..f416c76 100755 --- a/tools/js-compress.sh +++ b/tools/js-compress.sh @@ -58,6 +58,11 @@ function compress() { if [[ -d "$src" ]]; then compress $src $2 $item # recursion else + + if [[ -z $(git status $src -s) ]]; then + continue + fi + if [[ ! -d "$2/${sub_dir}" ]]; then mkdir -p $2/${sub_dir} fi