From: martin f. krafft Date: Fri, 23 Dec 2011 13:04:26 +0000 (+0100) Subject: set a default account X-Git-Url: https://git.madduck.net/etc/offlineimap.git/commitdiff_plain/4babcfff0c3609f7641f6d47976ba0b7910ab30f set a default account --- diff --git a/.bin/offlineimap b/.bin/offlineimap index 7e0e8b9..6ee4f0b 100755 --- a/.bin/offlineimap +++ b/.bin/offlineimap @@ -2,6 +2,7 @@ set -eu VAR=$HOME/.var/offlineimap +DEFAULT_ACCOUNT=madduck.net opts= accounts= @@ -22,8 +23,7 @@ say() { [ -n "$quiet" ] || echo >&2 "$@"; } err() { echo >&2 "$@"; } if [ -z "$accounts" ]; then - err "E: no account(s) specified…" - exit 1 + accounts=$DEFAULT_ACCOUNT else accounts=$(echo "$accounts" | sed -e 's/,/ /g') fi