From 71b1abb262c03f8cd07707e4a2838569994c5b39 Mon Sep 17 00:00:00 2001 From: AbcSxyZ <34010605+AbcSxyZ@users.noreply.github.com> Date: Thu, 6 Aug 2020 21:30:58 +0200 Subject: [PATCH 1/4] [NEED TEST] Recursive search of html file Explore html file recursively if subfolder are created. --- export_settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export_settings.sh b/export_settings.sh index 81546ac..d252611 100755 --- a/export_settings.sh +++ b/export_settings.sh @@ -14,7 +14,7 @@ echo "`which python3`" >> $logfile echo $cwd >> $logfile echo $1 >> $logfile pushd $1 -for f in *.html +for f in $(find . -name *.html) do echo python3 $cwd/export.py $f >> $logfile python3 $cwd/export.py $f From da1a2f81091de29d3682e98309899d875b0dc3a2 Mon Sep 17 00:00:00 2001 From: AbcSxyZ <34010605+AbcSxyZ@users.noreply.github.com> Date: Thu, 6 Aug 2020 21:35:38 +0200 Subject: [PATCH 2/4] export_settings.sh : use cd instead of pushd --- export_settings.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/export_settings.sh b/export_settings.sh index d252611..4c28681 100755 --- a/export_settings.sh +++ b/export_settings.sh @@ -13,11 +13,9 @@ echo "run at `date`" >> $logfile echo "`which python3`" >> $logfile echo $cwd >> $logfile echo $1 >> $logfile -pushd $1 +cd $1 for f in $(find . -name *.html) do echo python3 $cwd/export.py $f >> $logfile python3 $cwd/export.py $f done -popd - From ea67609075383ef81ab12f3648a49878f2b6e137 Mon Sep 17 00:00:00 2001 From: AbcSxyZ Date: Thu, 6 Aug 2020 21:39:34 +0200 Subject: [PATCH 3/4] Revert "export_settings.sh : use cd instead of pushd" This reverts commit da1a2f81091de29d3682e98309899d875b0dc3a2. --- export_settings.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/export_settings.sh b/export_settings.sh index 4c28681..d252611 100755 --- a/export_settings.sh +++ b/export_settings.sh @@ -13,9 +13,11 @@ echo "run at `date`" >> $logfile echo "`which python3`" >> $logfile echo $cwd >> $logfile echo $1 >> $logfile -cd $1 +pushd $1 for f in $(find . -name *.html) do echo python3 $cwd/export.py $f >> $logfile python3 $cwd/export.py $f done +popd + From c578e910990cb830e167bbebc56a3b3857d6c157 Mon Sep 17 00:00:00 2001 From: AbcSxyZ <34010605+AbcSxyZ@users.noreply.github.com> Date: Thu, 6 Aug 2020 21:59:15 +0200 Subject: [PATCH 4/4] add quote to find --- export_settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export_settings.sh b/export_settings.sh index d252611..46642ac 100755 --- a/export_settings.sh +++ b/export_settings.sh @@ -14,7 +14,7 @@ echo "`which python3`" >> $logfile echo $cwd >> $logfile echo $1 >> $logfile pushd $1 -for f in $(find . -name *.html) +for f in $(find . -name '*.html') do echo python3 $cwd/export.py $f >> $logfile python3 $cwd/export.py $f