diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-04 13:52:33 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-04 13:52:33 +1200 |
commit | 82f84fb602b46a332ce91bddd967c5ca10b6ebaf (patch) | |
tree | 826870e28ca1b57f4e861aa602cee0c0a4d4097a /bash/bash_profile | |
parent | Use consistent [[ syntax (diff) | |
download | dotfiles-82f84fb602b46a332ce91bddd967c5ca10b6ebaf.tar.gz dotfiles-82f84fb602b46a332ce91bddd967c5ca10b6ebaf.zip |
No real need to use use test over [...]
Diffstat (limited to 'bash/bash_profile')
-rw-r--r-- | bash/bash_profile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bash_profile b/bash/bash_profile index f62a10db..7366840e 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -1,10 +1,10 @@ # Load ~/.profile regardless of shell version -if test -e "$HOME"/.profile ; then +if [ -e "$HOME"/.profile ] ; then . "$HOME"/.profile fi # Ensure we're using at least version 2.05 -if ! test -n "$BASH_VERSINFO" ; then +if ! [ -n "$BASH_VERSINFO" ] ; then return elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then |