fix return
parent
9bb848bb61
commit
2335a2ea4a
|
|
@ -761,11 +761,13 @@ pub fn execute_or_exit(cmd string) Result {
|
||||||
// quoted path - return a quoted version of the path, depending on the platform.
|
// quoted path - return a quoted version of the path, depending on the platform.
|
||||||
pub fn quoted_path(path string) string {
|
pub fn quoted_path(path string) string {
|
||||||
$if windows {
|
$if windows {
|
||||||
|
mut quoted_path := ''
|
||||||
if path.ends_with(path_separator) {
|
if path.ends_with(path_separator) {
|
||||||
return '"${path + path_separator}"'
|
quoted_path = '"${path + path_separator}"'
|
||||||
} else {
|
} else {
|
||||||
return '"$path"'
|
quoted_path = '"$path"'
|
||||||
}
|
}
|
||||||
|
return quoted_path
|
||||||
} $else {
|
} $else {
|
||||||
return "'$path'"
|
return "'$path'"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue