Browse Source

Merge pull request #2149 from Kelimion/which

Detect `which` and complain if not found.
Jeroen van Rijn 2 years ago
parent
commit
a55e90fefd
1 changed files with 8 additions and 0 deletions
  1. 8 0
      build_odin.sh

+ 8 - 0
build_odin.sh

@@ -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