Browse Source

fix(scripts): address error generating docs after upgrade

best way to test is to actally use it
Josh Habdas 1 year ago
parent
commit
3119918e02
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      README.md
  2. 2
    2
      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.2`. 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.3`. 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
 

+ 2
- 2
bin/upgrade View File

@@ -4,7 +4,7 @@ set -e
4 4
 generate_help_docs () {
5 5
    echo "Generating help documentation ..."
6 6
    meta_path=themes/after-dark/data/npm
7
-   mkdir -p "$path" && echo "$LATEST_META" | tr '\r\n' ' ' > "$meta_path"/latest.json
7
+   mkdir -p "$meta_path" && echo "$LATEST_META" | tr '\r\n' ' ' > "$meta_path"/latest.json
8 8
    hugo new help/index.md --kind help 1>/dev/null
9 9
 }
10 10
 
@@ -21,7 +21,7 @@ upgrade () {
21 21
       else
22 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
-         echo "Version $latest_vers downloaded to ./themes/$1"
24
+         echo "Version $latest_vers downloaded to themes/$1"
25 25
          [ "$1" = "after-dark" ] && generate_help_docs
26 26
          echo "Upgrade complete! Please see CHANGELOG.md for changes."
27 27
       fi

Loading…
Cancel
Save