diff options
author | Alexandre Negrel <negrel.dev@protonmail.com> | 2021-01-31 15:00:50 +0300 |
---|---|---|
committer | Alexandre Negrel <negrel.dev@protonmail.com> | 2021-01-31 15:00:50 +0300 |
commit | b8fce34f44794bc563644ebbc250db3082b1dc6d (patch) | |
tree | dd474af241c610ba26f198369d0990ac03806cdc | |
parent | d61f6d20a5de88ffbb807b0bac8e6b32b1b0c63d (diff) |
update.sh update itself automatically now
-rwxr-xr-x | exampleSite/update.sh | 7 |
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 |