Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update.sh « exampleSite - github.com/negrel/hugo-theme-pico.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a3ee2e41768d44d88d7732680ee8175f87a4bebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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