Skip to content

Commit

Permalink
Also check "/usr/local/bin" and "/usr/bin" for sqlpackage on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-gravgaard committed Sep 12, 2022
1 parent d60910e commit f275631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Fake.Sql.SqlPackage/Sql.SqlPackage.fs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module SqlPackage =
let internal validPaths =
let paths = [
if Environment.isUnix then
Environment.pathDirectories |> Seq.map (fun dir -> !!(dir </> "sqlpackage")) |> Seq.concat |> Seq.map (fun path -> path, 15)
Seq.append Environment.pathDirectories ["/usr/local/bin"; "/usr/bin"] |> Seq.map (fun dir -> !!(dir </> "sqlpackage")) |> Seq.concat |> Seq.map (fun path -> path, 15)
else
let getSqlVersion (path:string) = path.Split '\\' |> Array.item 3 |> int
let getVsVersion (path: string) = (Path.GetDirectoryName path |> DirectoryInfo).Name |> int
Expand Down

0 comments on commit f275631

Please sign in to comment.