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

another attempt to fix the sh/bash confusion

parent f4543437
Branches feature/set_on_creation
No related tags found
No related merge requests found
......@@ -508,7 +508,7 @@ _include_search_paths = [
'/usr/local/include',
]
foreach idir : _include_search_paths
_ret = run_command('sh','-c','meson/directory_exists.sh',idir).returncode()
_ret = run_command('meson/directory_exists.sh',idir).returncode()
if _ret == 0
inc_arg = idir
_Inc_arg = '-I' + idir
......
#!/bin/sh
#!/bin/bash
# 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