From b8fce34f44794bc563644ebbc250db3082b1dc6d Mon Sep 17 00:00:00 2001 From: Alexandre Negrel Date: Sun, 31 Jan 2021 13:00:50 +0100 Subject: update.sh update itself automatically now --- exampleSite/update.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3