Skip to content

Commit

Permalink
fix #45 set command quoted
Browse files Browse the repository at this point in the history
in set command parameter value read from %~p* parameter extension needed to be quoted to avoid special characters from path breaking command
  • Loading branch information
Timsonrobl committed Mar 28, 2021
1 parent c5118da commit 022fcf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const writeShim_ = (from, to, prog, args, variables) => {
const head = '@ECHO off\r\n' +
'GOTO start\r\n' +
':find_dp0\r\n' +
'SET dp0=%~dp0\r\n' +
'SET "dp0=%~dp0"\r\n' +
'EXIT /b\r\n' +
':start\r\n' +
'SETLOCAL\r\n' +
Expand Down

0 comments on commit 022fcf1

Please sign in to comment.