Skip to content

Commit

Permalink
Check "/usr/local/bin", followed by "/usr/bin", and then PATH for sql…
Browse files Browse the repository at this point in the history
…package on Unix-likes
  • Loading branch information
nick-gravgaard committed Sep 12, 2022
1 parent d60910e commit d3accd9
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 ["/usr/local/bin"; "/usr/bin"] Environment.pathDirectories |> 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 d3accd9

Please sign in to comment.