development_strings #8

Merged
mik-tf merged 3 commits from development_strings into main 2024-10-11 07:14:29 +00:00
Showing only changes of commit fd2a4c2853 - Show all commits

View File

@ -56,10 +56,10 @@ fn add_path_windows() {
new_env_path := '${current_path};${new_path}'
// Prepare the command to set the new PATH
cmd := 'setx PATH "${new_env_path}"'
cmd := r'setx PATH "' + new_env_path + '"'
// Execute the command to update the PATH
exit_code := os.system(cmd.replace('"$', '${new_env_path}"'))
exit_code := os.system(cmd)
if exit_code == 0 {
println('PATH updated successfully.')