Merge pull request #2149 from Kelimion/which

Detect `which` and complain if not found.
This commit is contained in:
Jeroen van Rijn
2022-10-25 16:56:42 +02:00
committed by GitHub

View File

@@ -134,6 +134,14 @@ run_demo() {
./odin run examples/demo/demo.odin -file
}
have_which() {
if ! which which > /dev/null 2>&1; then
panic "Could not find \`which\`"
fi
}
have_which
case $OS in
Linux)
config_linux