소스 검색

Merge pull request #1012 from czardien/fix

Fix unary operator expected error
pull/1013/head
Luke Smith 1 년 전
committed by GitHub
부모
커밋
40ff0fc93f
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      bin/mw

+ 5
- 1
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


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