diff options
author | Alexandre Negrel <negrel.dev@protonmail.com> | 2021-01-30 20:22:00 +0300 |
---|---|---|
committer | Alexandre Negrel <negrel.dev@protonmail.com> | 2021-01-30 20:22:00 +0300 |
commit | d257ae645a31ec4639541d19d571cd732025d5bf (patch) | |
tree | ea8e1bf768da53b7732e7b1027f11d1273841a83 | |
parent | 29a83daf21e16f9b8971ccd243b9c898b6ff8f3e (diff) |
Updating update.sh script
-rwxr-xr-x | exampleSite/update.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/exampleSite/update.sh b/exampleSite/update.sh index 9c9c882..a3ee2e4 100755 --- a/exampleSite/update.sh +++ b/exampleSite/update.sh @@ -1,12 +1,16 @@ -#!/bin/bash +#!/bin/sh echo "Updating node modules : " echo "npx npm-check-updates -u && npm install" - npx npm-check-updates -u && npm install echo "Updating Pico submodule : " echo "git submodule foreach git pull origin master" - git submodule foreach git pull origin master +echo "Updating theme resources : " +npm ls postcss-cli > /dev/null +if [ $? == 1 ] ; then + echo "cp -r themes/pico//exampleSite/resources ." + cp -r themes/pico//exampleSite/resources . +fi
\ No newline at end of file |