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

github.com/negrel/hugo-theme-pico.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Negrel <negrel.dev@protonmail.com>2021-01-30 20:22:00 +0300
committerAlexandre Negrel <negrel.dev@protonmail.com>2021-01-30 20:22:00 +0300
commitd257ae645a31ec4639541d19d571cd732025d5bf (patch)
treeea8e1bf768da53b7732e7b1027f11d1273841a83
parent29a83daf21e16f9b8971ccd243b9c898b6ff8f3e (diff)
Updating update.sh script
-rwxr-xr-xexampleSite/update.sh10
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