diff --git a/build.vsh b/build.vsh index d1c413b..948d8cf 100644 --- a/build.vsh +++ b/build.vsh @@ -5,13 +5,13 @@ fn sh(cmd string) { print(execute_or_exit(cmd).output) } -sh('ls') +//sh('ls') rmdir_all('build') or {} mkdir('build')! result := execute('mv *.v build/') -if result.exit_code ! /= { +if result.exit_code != 0 { println(result.output) } diff --git a/src/main.v b/src/main.v index 159eea5..7054075 100644 --- a/src/main.v +++ b/src/main.v @@ -11,8 +11,8 @@ fn main() { name: 'Comet' description: 'The package manager you never knew you needed' usage: 'test' - pre_execute: fn (cmd cli.Command) ! { - if initalizer.check_initalization() ! { + pre_execute: fn (cmd cli.Command) != { + if initalizer.check_initalization() != { println('initalization required') } }