summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorWayne Reeves <darthwayne@hotmail.com>2022-08-18 20:46:00 -0500
committerWayne Reeves <darthwayne@hotmail.com>2022-08-18 20:46:00 -0500
commitd2a5d06d4308e10c04e74446e56999badc2fdf38 (patch)
treef038c6fb88dd71302dcf6377c69d224d267273fe /bin
parentb7f2bc0ff14f7da6cf2d7c4186bed0dfe925510f (diff)
forgot escape on | to get variable; case condition s/no/mute/
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mailsync b/bin/mailsync
index 818158d..d33ec23 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -19,7 +19,7 @@ pgrep mbsync >/dev/null && { echo "mbsync is already running."; exit ;}
# files for variable assignments. This is ugly, but there are few options that
# will work on the maximum number of machines.
eval "$(grep -h -- \
- "^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME|MAILSYNC_MUTE\)=" \
+ "^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME\|MAILSYNC_MUTE\)=" \
"$HOME/.profile" "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.config/zsh/.zprofile" "$HOME/.zshenv" \
"$HOME/.config/zsh/.zshenv" "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" \
"$HOME/.pam_environment" 2>/dev/null)"
@@ -32,9 +32,9 @@ lastrun="${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun"
# Mute notifications or get kernel name.
# Settings are different for MacOS (Darwin) systems.
-[ -z "$MAILSYNC_MUTE" ] && notify="$(uname)" || notify="no"
+[ -z "$MAILSYNC_MUTE" ] && notify="$(uname)" || notify="mute"
case "$notify" in
- no)
+ mute)
notify() { echo "notifications disabled" >/dev/null ;}
;;
Darwin)