mbucc / shmig

Database migration tool written in BASH.
BSD 3-Clause "New" or "Revised" License
461 stars 50 forks source link

Use "which" to find binaries instead of assuming they are located in … #21

Closed gsilk closed 7 years ago

gsilk commented 7 years ago

I'm using shmig on osx with postgresql installed via homebrew. It's broken because it assumes the binaries for psql et al, are located in /usr/bin. This change uses "which" to find the binaries.

I think ideally you would be able to specify the binary via command line switch. However, I regard this change in its current form as a step forward.

Feedback would be appreciated!

mbucc commented 7 years ago

I can't think of any problems with this. Thanks for the patch!

gsilk commented 7 years ago

My pleasure!