test simpler strings for windows path
This commit is contained in:
parent
1580602523
commit
fd2a4c2853
4
flist.v
4
flist.v
@ -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.')
|
||||
|
Loading…
Reference in New Issue
Block a user