瀏覽代碼

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


Loading…
取消
儲存