Explorar el Código

Merge pull request #1012 from czardien/fix

Fix unary operator expected error
pull/1013/head
Luke Smith hace 1 año
committed by GitHub
padre
commit
40ff0fc93f
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      bin/mw

+ 5
- 1
bin/mw Ver fichero

@@ -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


Cargando…
Cancelar
Guardar