浏览代码

Merge pull request #1012 from czardien/fix

Fix unary operator expected error
pull/1013/head
Luke Smith 1年前
committed by GitHub
父节点
当前提交
40ff0fc93f
找不到此签名对应的密钥 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


正在加载...
取消
保存