소스 검색

if mbsync -v is less than 1.4.0 use old format, else use new format

pull/956/head
Andreas Rosland 11 달 전
부모
커밋
e0de67cf9a
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. +8
    -8
      bin/mw

+ 8
- 8
bin/mw 파일 보기

@@ -29,14 +29,14 @@ maxmes="0"

alias mbsync='mbsync -c "$mbsyncrc"'

# mbsync now requires "Far/Near" rather than "Master/Slave", but Ubuntu/Debian
# have the older version.
if command -V apt-get >/dev/null 2>&1; then
master="Master"
slave="Slave"
else
master="Far"
slave="Near"
# mbsync >= 1.4.0 requires "Far/Near" rather than "Master/Slave"
master="Far"
slave="Near"
mbsync_version=$(mbsync --version | cut -d' ' -f2)
#check if version is less than 1.4.0
if [[ "$(printf '1.4.0\n%s' "$mbsync_version" | sort -V | head -n1)" != "1.4.0" ]]; then
master="Master"
slave="Slave"
fi

for x in "/etc/ssl/certs/ca-certificates.crt" \


불러오는 중...
취소
저장