ljsdev-ssg

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 8cc3df34b5f14435671ad9922a5af4d4fe46bacc
parent 8fc9c9d944adebbbf6fef0de61e81d9970582b31
Author: Leon <leon@wp2static.com>
Date:   Mon, 19 Aug 2019 06:27:27 +0200

notes on migration

Diffstat:
Aimport-from-static-wp-export.sh | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/import-from-static-wp-export.sh b/import-from-static-wp-export.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# mv dirname/index.html to dirname.html +find . -type d | sed 's|^./||' | xargs -I {} cp {}/index.html {}.html + +# rm original dirs +find . -type d | sed 's|^./||' | xargs -I {} rm -Rf {} + +# restore wp-content dir +git checkout -- wp-content +