Skip to content

Commit 0217c15

Browse files
committed
fix npm#45 set command quoted
in set command parametr value read from %~p* parameter extension needed to be quoted to avoid special characters from path breaking command
1 parent c5118da commit 0217c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const writeShim_ = (from, to, prog, args, variables) => {
8686
const head = '@ECHO off\r\n' +
8787
'GOTO start\r\n' +
8888
':find_dp0\r\n' +
89-
'SET dp0=%~dp0\r\n' +
89+
'SET "dp0=%~dp0"\r\n' +
9090
'EXIT /b\r\n' +
9191
':start\r\n' +
9292
'SETLOCAL\r\n' +

0 commit comments

Comments
 (0)