ausfestivus / andrews-configs

Andrew's Configuration Files
0 stars 0 forks source link

dotfiles bashrc problem with $OSTYPE #48

Closed andrew-best-diaxion closed 6 years ago

andrew-best-diaxion commented 6 years ago

So, latest High Sierra update has changed the OSTYPE var in the shell.

diff -r ./dotfiles/bashrc /Volumes/VMs/andrews-configs/dotfiles/bashrc
3c3
< if [ $OSTYPE == "darwin16" ] || [ $OSTYPE = "darwin17" ]; then # do the needful things on MacOS
---
> if [ $OSTYPE == "darwin16" ] || [ $OSTYPE = "darwin17.3.0" ]; then # do the needful things on MacOS

The fix is to change this to use a regex match of some type and not an absolute value.

andrew-best-diaxion commented 6 years ago

Issue can close once commit 30b15df makes it to master

ausfestivus commented 6 years ago

This issue was fixed.