Skip to content
Snippets Groups Projects
Commit 37844b3c authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-master' into 'pregmod-master'

Permit the use of apostrophe characters in FC's path

Closes #2249

See merge request pregmodfan/fc-pregmod!7731
parents c9c48420 585db829
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ ECHO "Ignore the first line to skip the BOM" >%_LISTFILE% ...@@ -16,7 +16,7 @@ ECHO "Ignore the first line to skip the BOM" >%_LISTFILE%
:: If we have powershell available, strip the absolute path information :: If we have powershell available, strip the absolute path information
:: If not, fail silently (which is fine, but will leak path information into the built file) :: If not, fail silently (which is fine, but will leak path information into the built file)
powershell -command "" 2> NUL powershell -command "" 2> NUL
IF %ERRORLEVEL% EQU 0 powershell -command "(get-content -path %_LISTFILE% -encoding utf8) -replace [regex]::escape('%CD%'),'' -replace '\"','' ^| set-content -encoding utf8 -path %_LISTFILE%" IF %ERRORLEVEL% EQU 0 powershell -command "(get-content -path %_LISTFILE% -encoding utf8) -replace [regex]::escape(\"%CD%\"),'' -replace '\"','' ^| set-content -encoding utf8 -path %_LISTFILE%"
:: Append the files :: Append the files
(FOR /F "skip=1 usebackq delims=" %%F IN (`type "%_LISTFILE%"`) DO ( (FOR /F "skip=1 usebackq delims=" %%F IN (`type "%_LISTFILE%"`) DO (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment