-
Notifications
You must be signed in to change notification settings - Fork 116
Для OPM исправлен абсолютный путь запуска #1655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |||||
|
|
||||||
| setlocal | ||||||
|
|
||||||
| set lib="%~dp0..\lib" | ||||||
| set lib=%~dp0..\lib | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quote the SET value for safety with paths containing spaces. The Proposed fix-set lib=%~dp0..\lib
+set "lib=%~dp0..\lib"📝 Committable suggestion
Suggested change
🧰 Tools🪛 Blinter (1.0.102)[error] 5-5: Unsafe SET command usage. Explanation: SET commands without proper validation or quoting can cause security issues. Recommendation: Always quote SET values and validate input: SET "var=safe value". Context: SET command value should be quoted for safety (SEC002) 🤖 Prompt for AI Agents
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Кролик прав, зачем убраны кавычки? |
||||||
| set opm=%lib%\opm\src\cmd\opm.os | ||||||
|
|
||||||
| oscript %opm% %* | ||||||
| "%~dp0oscript.exe" "%opm%" %* | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THISDIR указывает на каталог где лежит шеллскрипт и это тот же каталог, где лежит исполняемый файл oscript. Получается, что
$THISDIR/oscriptаналогично./oscriptThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Или я не понял смысл изменения
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oscript и ./oscript - не одно и то же. Второе будет искать только в текущем каталоге. Первое - в path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, тут я неверно написал. Но смысл изменения все равно непонятен