mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools/oldv: fix default behaviour (regression caused by 760448a
)
This commit is contained in:

committed by
Alexander Medvednikov

parent
31899eac2a
commit
7a79c94a9e
@ -39,6 +39,17 @@ pub fn chdir(path string) {
|
||||
os.chdir(path)
|
||||
}
|
||||
|
||||
pub fn rmrf(path string) {
|
||||
verbose_trace(@FN, 'rm -rf $path')
|
||||
if os.exists(path) {
|
||||
if os.is_dir(path) {
|
||||
os.rmdir_recursive(path)
|
||||
}else{
|
||||
os.rm(path)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn run(cmd string) string {
|
||||
verbose_trace(@FN, cmd)
|
||||
x := os.exec(cmd) or {
|
||||
|
Reference in New Issue
Block a user