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:06:41 +0300
committerAlexandre Negrel <negrel.dev@protonmail.com>2021-01-31 15:06:41 +0300
commit9b388318497f3c6c486decd41f3c355978482ca0 (patch)
tree21d3906343114f865d06c558844e03773b8a83ba
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..db65259 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