test simpler strings for windows path

This commit is contained in:
mik-tf 2024-10-11 02:33:45 -04:00
parent 1580602523
commit fd2a4c2853

View File

@ -56,10 +56,10 @@ fn add_path_windows() {
new_env_path := '${current_path};${new_path}' new_env_path := '${current_path};${new_path}'
// Prepare the command to set the 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 // 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 { if exit_code == 0 {
println('PATH updated successfully.') println('PATH updated successfully.')