Skip to content

Commit

Permalink
up: fix make on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
serkonda7 committed Dec 10, 2023
1 parent 8433916 commit 26feae5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ _unreleased_

### CLI and Tooling
- Add `init` tool to setup new projects
- `up`: Fix make on windows
- Add `test-tools` to run all tool tests
- `gen-baitjs`
- Remove from builtin tools as it's designed for CI only
Expand Down
7 changes: 6 additions & 1 deletion cli/tools/up.bt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ fun main() {

// In case of failure, try make
println('"bait self" failed, running make...')
make_res := os.system('./make.sh')
make_cmd := if os.platform() == 'linux' {
'./make.sh'
} else {
'./make.bat'
}
make_res := os.system(make_cmd)
if make_res != 0 {
exit(1)
}
Expand Down

0 comments on commit 26feae5

Please sign in to comment.