Browse Source

fix(scripts): resolve tar cd issue

pull/149/head
Josh Habdas 2 years ago
parent
commit
a573640b04
Signed by: jhabdas 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
## Upgrading
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).
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).
## License

+ 1
- 1
bin/upgrade View File

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

Loading…
Cancel
Save