mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
use os.quoted_path more
This commit is contained in:
@@ -61,7 +61,7 @@ fn opendiff_exists() bool {
|
||||
|
||||
pub fn color_compare_files(diff_cmd string, file1 string, file2 string) string {
|
||||
if diff_cmd != '' {
|
||||
full_cmd := '$diff_cmd --minimal --text --unified=2 --show-function-line="fn " "$file1" "$file2" '
|
||||
full_cmd := '$diff_cmd --minimal --text --unified=2 --show-function-line="fn " ${os.quoted_path(file1)} ${os.quoted_path(file2)} '
|
||||
x := os.execute(full_cmd)
|
||||
if x.exit_code < 0 {
|
||||
return 'comparison command: `$full_cmd` not found'
|
||||
|
||||
Reference in New Issue
Block a user