run = (cmd) -> status = os.execute cmd unless status error string.format "got nonzero exit status %d", status run "./test.sh" run "nix-build"