Skip to content

Commit

Permalink
Make sed greedy since there are two links per line to fix
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2687
  • Loading branch information
dietmarw authored and OpenModelica-Hudson committed Oct 4, 2018
1 parent 3638716 commit cc4c1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/GenerateDoc.mos
Expand Up @@ -499,7 +499,7 @@ def makeCaseSensitive():
print('Renaming file %s to %s' % (file,nfile))
if os.path.isfile(nfile):
raise Exception('File already exists: ' + nfile)
call(['sed','-i','s/%s/%s/' % (file,nfile)] + files)
call(['sed','-i','s/%s/%s/g' % (file,nfile)] + files)
os.rename(file,nfile)
return False
visited[upper] = file
Expand Down

0 comments on commit cc4c1bf

Please sign in to comment.