Skip to content
Snippets Groups Projects
Commit f4543437 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

fix issue with sh and bash confusion

parent 3fbdb8bf
No related branches found
No related tags found
No related merge requests found
......@@ -508,7 +508,8 @@ _include_search_paths = [
'/usr/local/include',
]
foreach idir : _include_search_paths
if run_command('sh','-c','meson/directory_exists.sh',idir).returncode() == 0
_ret = run_command('sh','-c','meson/directory_exists.sh',idir).returncode()
if _ret == 0
inc_arg = idir
_Inc_arg = '-I' + idir
if not found and compiler.has_header('gsl/gsl_blas.h',
......@@ -521,7 +522,6 @@ endforeach
incdirs += [ my_incdirs ]
############################################################
# features which are converted into preprocessor flags (-D)
#
......
#!/bin/bash
#!/bin/sh
# return 0 if directory exists, 1 otherwise
if [[ -d "$1" ]]; then
if [ -d "$1" ]; then
exit 0;
else
exit 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment