Browse Source

fix(scripts): resolve tar cd issue

Josh Habdas 1 year ago
parent
commit
a573640b04
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      README.md
  2. 1
    1
      bin/upgrade

+ 1
- 1
README.md View File

@@ -81,7 +81,7 @@ Once started press `g` for traffic inspection, or quit to go offline and use `fg
81 81
 
82 82
 ## Upgrading
83 83
 
84
-To check for theme updates and automatically upgrade to the latest version simply run `./theme/after-dark/bin/upgrade` from your site directory. This feature requires you install After Dark starting with `v6.7.1`. If you installed from an earlier version simply follow the steps [listed here](https://git.habd.as/comfusion/after-dark/commit/6415250769c9c78338893f98b5ab9b77968053f7).
84
+To check for theme updates and automatically upgrade to the latest version simply run `./theme/after-dark/bin/upgrade` from your site directory. This feature requires you install After Dark starting with `v6.7.2`. If you installed from an earlier version simply follow the steps [listed here](https://git.habd.as/comfusion/after-dark/commit/6415250769c9c78338893f98b5ab9b77968053f7).
85 85
 
86 86
 ## License
87 87
 

+ 1
- 1
bin/upgrade View File

@@ -19,7 +19,7 @@ upgrade () {
19 19
       if [ "$current_vers" = "$latest_vers" ] ; then
20 20
          echo "Did not upgrade $1. Already using latest version." >&1; exit 0
21 21
       else
22
-         rm -rf themes/"$1"
22
+         rm -rf themes/"$1"/*
23 23
          wget -qO - https://registry.npmjs.org/"$1"/-/"$1"-"$latest_vers".tgz | tar --strip-components=1 -xz -C themes/"$1"
24 24
          echo "Version $latest_vers downloaded to ./themes/$1"
25 25
          [ "$1" = "after-dark" ] && generate_help_docs

Loading…
Cancel
Save