Skip to content
Snippets Groups Projects
Commit 6aa8aadf authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

fixed small bug in plumedcheck

The used modules were not detected correctly on travis probably due to
some settings for the cd option. This was harmless since the list of used
modules was not checked indeed.
parent 7b69a8ed
No related branches found
No related tags found
No related merge requests found
...@@ -210,7 +210,7 @@ BEGINFILE{ ...@@ -210,7 +210,7 @@ BEGINFILE{
sub("/[^/]*$","",path); sub("/[^/]*$","",path);
# an explicit cd is required since the command might be run from a different directory # an explicit cd is required since the command might be run from a different directory
system("cd " path "; make show_used_modules 2>/dev/null > " tempfile) system("cd " path "; make show_used_modules 2>/dev/null > " tempfile)
if(getline < tempfile >0 && $1=="used_modules") for(i=2;i<=NF;i++) used_modules[module][$i]=1 while(getline < tempfile >0) if($1=="used_modules") for(i=2;i<=NF;i++) used_modules[module][$i]=1
close(tempfile) close(tempfile)
system("rm " tempfile) system("rm " tempfile)
used_modules_here="" used_modules_here=""
......
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