mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Detect which and complain if not found.
This commit is contained in:
@@ -134,6 +134,14 @@ run_demo() {
|
|||||||
./odin run examples/demo/demo.odin -file
|
./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
|
case $OS in
|
||||||
Linux)
|
Linux)
|
||||||
config_linux
|
config_linux
|
||||||
|
|||||||
Reference in New Issue
Block a user