diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-05-20 13:09:11 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-05-20 13:09:11 -0400 |
commit | a6c81625c8ed887b7ddbfed005d2a2ffdf27a503 (patch) | |
tree | 8a6eaf4450f91e01c45ac7b9fb8766158751d8bd /bin/mw | |
parent | 4c57b410fc72d332ccdcf939e58521a248ca5fd0 (diff) |
posix and mac fix
Diffstat (limited to 'bin/mw')
-rwxr-xr-x | bin/mw | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -7,11 +7,11 @@ command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2" } ! command -v mbsync >/dev/null && printf "\`mbsync\` must be installed to run mutt-wizard.\\n" && exit -if [ "$OSTYPE" = "darwin" ]; then - prefix="/usr/local" -else - prefix="/usr" -fi +case "$(uname)" in + Linux) prefix="/usr" ;; + *) prefix="/usr/local" ;; +esac + muttdir="$HOME/.config/mutt" # Main mutt config location accdir="$muttdir/accounts" # Directory for account settings maildir="$HOME/.local/share/mail" # Location of mail storage |