Skip to content

Commit

Permalink
scripts: fix blacklist in replace.fsx
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Mar 17, 2020
1 parent 6ecca7a commit f9798f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/replace.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ let ReplaceInFile (file: FileInfo) (oldString: string) (newString: string) =

let rec ReplaceInDir (dir: DirectoryInfo) (oldString: string) (newString: string) =
for file in dir.GetFiles() do
if (file.Extension.ToLower() <> "dll") &&
(file.Extension.ToLower() <> "exe") &&
(file.Extension.ToLower() <> "png") then
if file.Extension.ToLower() <> ".dll" &&
file.Extension.ToLower() <> ".exe" &&
file.Extension.ToLower() <> ".png" then
ReplaceInFile file oldString newString
for subFolder in dir.GetDirectories() do
if subFolder.Name <> ".git" then
Expand Down

0 comments on commit f9798f6

Please sign in to comment.