Detect which and complain if not found.
This commit is contained in:
1 parent
a5f8c3f692
commit
f58f922487
1 file changed
+8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user