Ver a proveniência

don't allow to be run concurrently with itself

This allows mailsync to be called like this `bindsym $mod+e exec --no-startup-id mailsync; exec $term -e neomutt && pkill -RTMIN+12 i3blocks` such that it refreshes your mail when you open mutt without it needlessly syncing if a sync is already running.
tags/v3.1
luukvbaal há 7 anos
committed by GitHub
ascendente
cometimento
15eeddc235
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 2 adições e 0 eliminações
  1. +2
    -0
      bin/mailsync

+ 2
- 0
bin/mailsync Ver ficheiro

@@ -3,6 +3,8 @@

# Run only if user logged in (prevent cron errors)
pgrep -cu "$USER" >/dev/null || exit
# Run only if not already running in other instance
[ $(pgrep -xf "sh /usr/bin/mailsync" | wc -l) -eq 2 ] || exit

# Checks for internet connection and set notification script.
ping -q -c 1 1.1.1.1 > /dev/null || exit


Carregando…
Cancelar
Guardar