bigger if statement for only setting certain values when shell is bash.