diff --git a/update b/update index c05b121..0b898f3 100755 --- a/update +++ b/update @@ -6,7 +6,7 @@ source $__DIR__/lib/include/bash/const; source $__DIR__/lib/include/bash/func; # [1] Send data + fetch configuration -test $($SOURCE_DIR/lib/api/sync) -eq 127 && slog "sync failed" - "update" && exit; +test "$($SOURCE_DIR/lib/api/sync)" = "127" && slog "sync failed" - "update" && exit; test $? -ne 0 && exit 127;