Explorar el Código

Merge pull request #2149 from Kelimion/which

Detect `which` and complain if not found.
Jeroen van Rijn hace 3 años
padre
commit
a55e90fefd
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      build_odin.sh

+ 8 - 0
build_odin.sh

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