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-31 15:00:50 +0300
committerAlexandre Negrel <negrel.dev@protonmail.com>2021-01-31 15:00:50 +0300
commitb8fce34f44794bc563644ebbc250db3082b1dc6d (patch)
treedd474af241c610ba26f198369d0990ac03806cdc
parentd61f6d20a5de88ffbb807b0bac8e6b32b1b0c63d (diff)
update.sh update itself automatically now
-rwxr-xr-xexampleSite/update.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/exampleSite/update.sh b/exampleSite/update.sh
index c270ce8..29d8099 100755
--- a/exampleSite/update.sh
+++ b/exampleSite/update.sh
@@ -34,3 +34,10 @@ if [ "$no_postcss_cli" = true ]; then
echo "cp -r ./themes/pico/exampleSite/resources ."
cp -r ./themes/pico/exampleSite/resources .
fi
+
+script_path="./themes/pico/exampleSite/update.sh"
+if [ -f "$script_path" ]; then
+ echo "Updating update.sh : "
+ echo "cp "$script_path" ."
+ cmp --silent "./update.sh" "$script_path" || cp "$script_path" .
+fi