Detect which and complain if not found.

This commit is contained in:
Jeroen van Rijn
2022-10-25 16:45:38 +02:00
parent a5f8c3f692
commit f58f922487

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