rename targetDir to targetFolder in deploy config

This commit is contained in:
luk.lu
2022-11-30 13:20:59 +08:00
parent 9969bedb3c
commit af8b5c549d
4 changed files with 85 additions and 36 deletions

View File

@@ -31,7 +31,7 @@ pushd %FONPATH%
echo *** Starting from [%CD%] ***
echo;
echo === Enter [commit message] or leave blank for default to 'updated'
echo === Enter [commit message] or [leave blank] for default to 'updated'
set /p COMMIT_MESSAGE=">>> "
@ if "" == "%COMMIT_MESSAGE%" (
set COMMIT_MESSAGE="updated"
@@ -41,24 +41,19 @@ echo;
@REM for /d %%d in (*) do ( pushd %%d & ( for /d %%d in (*) do ( if exist %%d/.git pushd %%d & echo --- git pulling: %%d ... & git pull & popd ) ) & popd )
for /d %%o in (*) do (
@REM echo "%%o" | findstr "node_modules" >NUL && (
@REM echo !!!!!!!! omitting [%FONPATH%\%%o] !!!!!!!!
@REM echo;
@REM ) || (
echo ======== entering [%FONPATH%\%%o] ========
echo;
pushd %%o
for /d %%g in (*) do (
if exist %%g\.git (
pushd %%g
echo ---- git commit and push [%FONPATH%\%%o\%%g] ----
git add . && git commit -m "%COMMIT_MESSAGE%" && git push
echo;
popd
)
echo ======== entering [%FONPATH%\%%o] ========
echo;
pushd "%%o"
for /d %%g in (*) do (
if exist %%g\.git (
pushd "%%g"
echo ---- git commit and push [%FONPATH%\%%o\%%g] ----
git add . && git commit -m "%COMMIT_MESSAGE%" && git push
echo;
popd
)
popd
@REM )
)
popd
)
popd