File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 7070
7171echo Enter the query file path (e.g., queries/my-queries.xml):
7272set /p query_file =
73+ :: Remove leading and trailing spaces
74+ for /f " tokens=* delims= " %%a in (" %query_file% " ) do set query_file = %%a
7375if " %query_file% " == " " (
7476 echo File path not entered.
7577 echo .
@@ -151,6 +153,8 @@ echo.
151153
152154echo Enter XML file path (e.g., queries/my-queries.xml):
153155set /p xml_file =
156+ :: Remove leading and trailing spaces
157+ for /f " tokens=* delims= " %%a in (" %xml_file% " ) do set xml_file = %%a
154158if " %xml_file% " == " " (
155159 echo File path not entered.
156160 echo .
@@ -205,6 +209,8 @@ echo.
205209
206210echo Enter JSON file path (e.g., queries/my-queries.json):
207211set /p json_file =
212+ :: Remove leading and trailing spaces
213+ for /f " tokens=* delims= " %%a in (" %json_file% " ) do set json_file = %%a
208214if " %json_file% " == " " (
209215 echo File path not entered.
210216 echo .
You can’t perform that action at this time.
0 commit comments