You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
It seems that wrapping the string in both double and single quotes, interfers with the escape character ` before the apostrophe. This results in the apostrophe being read as a delimiter instead of a special character.
I am unsure if this is a good workaround as I am not sure of the reason behind using both double and single quotes.
The text was updated successfully, but these errors were encountered:
Frist of all thank you so much for this amazing repository!
Unfortunately I have learned that some users use apostrophe in their user names on windows machines which causes an error.
tested on:
Windows 10 home and pro
sudo-prompt 9.1.1
windows username: test's
Code:
Error:
Logging the error inside the WindowsElevate function shows this:
The problem is with the path to execute.bat.
My solution was changing line 523 from :
command.push('"\'' + instance.pathExecute.replace(/'/g, "`'") + '\'"');
to
command.push('"' + instance.pathExecute.replace(/'/g, "`'") + '"');
the first produces a string like:
"'C:\\Users\\test`'s\\execute.bat'"
whereas the second produces:
"C:\\Users\\test`'s\\execute.bat"
It seems that wrapping the string in both double and single quotes, interfers with the escape character
`
before the apostrophe. This results in the apostrophe being read as a delimiter instead of a special character.I am unsure if this is a good workaround as I am not sure of the reason behind using both double and single quotes.
The text was updated successfully, but these errors were encountered: