From a3fd0ce5efd6c96417547a44070ea73a2880c89e Mon Sep 17 00:00:00 2001 From: curben Date: Wed, 7 Nov 2018 17:24:42 +1030 Subject: [PATCH] docs: it's safer to append rather than prepend to $PATH --- source/_posts/how-to-create-a-hexo-blog.md | 2 +- source/_posts/secure-node-modules-snyk.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_posts/how-to-create-a-hexo-blog.md b/source/_posts/how-to-create-a-hexo-blog.md index a2af9b6..42c0d76 100644 --- a/source/_posts/how-to-create-a-hexo-blog.md +++ b/source/_posts/how-to-create-a-hexo-blog.md @@ -52,7 +52,7 @@ $ sudo pacman -S npm ```bash $ cd $ npm install -$ echo 'PATH="./node_modules/.bin:$PATH"' >> ~/.profile +$ echo 'PATH="$PATH:./node_modules/.bin"' >> ~/.profile ``` 5. Generate static files to check for any error. You should always do this before pushing/merging commits to the `master` branch. ```bash diff --git a/source/_posts/secure-node-modules-snyk.md b/source/_posts/secure-node-modules-snyk.md index a2b0ec0..ba5ce85 100644 --- a/source/_posts/secure-node-modules-snyk.md +++ b/source/_posts/secure-node-modules-snyk.md @@ -38,7 +38,7 @@ Practically, you can use Snyk to patch it, *if* possible like this [hexo-all-min ```bash $ npm install snyk # Add 'node_modules/.bin' to $PATH, if you haven't done so. Check ~/.profile before running the following command. -$ echo 'PATH="./node_modules/.bin:$PATH"' >> ~/.profile +$ echo 'PATH="$PATH:./node_modules/.bin"' >> ~/.profile ``` 5. `cd` into your repo folder. 6. Login to Snyk, `$ snyk auth`. Snyk website will pop-up.