Luke Smith
há 1 ano
committed by
GitHub
ascendente
cometimento
40ff0fc93f
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: B5690EEEBB952194
1 ficheiros alterados com
5 adições e
1 eliminações
-
bin/mw
|
|
|
@@ -34,7 +34,11 @@ alias mbsync='mbsync -c "$mbsyncrc"' |
|
|
|
# mbsync >=1.4.0 requires "Far/Near" rather than "Master/Slave." |
|
|
|
mbver="$(mbsync -v)" |
|
|
|
mbver="${mbver#* }" |
|
|
|
if [ "${mbver%.*}" >= 1.4 ]; then |
|
|
|
mbver="${mbver%.*}" |
|
|
|
# Comparing two float numbers in bash is a pain in the butt, so we get rid of |
|
|
|
# dots and turn them into nice integers |
|
|
|
mbver="${mbver/\./}" |
|
|
|
if [ "${mbver}" -gt 14 ]; then |
|
|
|
master="Far" |
|
|
|
slave="Near" |
|
|
|
else |
|
|
|
|