ref: a185ab3cc28f3211a74caaab550337c45a8a847b
parent: 35de3ed9972eb79e61a2516627f3797ad35317d1
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 29 08:41:45 EST 2014
std.chdir() returns boolean for success.
--- a/util.myr
+++ b/util.myr
@@ -21,7 +21,7 @@
std.fatal(1, "could not fork command\n")
elif pid == 0
if dir.len > 0
- if std.chdir(dir) < 0
+ if !std.chdir(dir)
std.fatal(1, "unable to enter directory %s\n", dir)
;;
;;