[fix] minfix

This commit is contained in:
xdrm-brackets 2017-05-09 14:00:15 +02:00
parent f459a7c4be
commit c740586bd6
1 changed files with 2 additions and 8 deletions

10
update
View File

@ -8,18 +8,12 @@ source $__DIR__/lib/include/bash/func;
# [1] Send data + fetch configuration # [1] Send data + fetch configuration
if [ ! -e /target/sync ]; then if [ ! -e /target/sync ]; then
$SOURCE_DIR/lib/api/init; test "$($SOURCE_DIR/lib/api/init)" = "127" && slog "init failed" - "update" && exit 127;
if [ $? -ne 0 ]; then
slog "init failed" - "update";
exit 127;
fi;
touch /target/sync; touch /target/sync;
else else
test "$($SOURCE_DIR/lib/api/sync)" = "127"; && slog "sync failed" - "update" && exit; test "$($SOURCE_DIR/lib/api/sync)" = "127"; && slog "sync failed" - "update" && exit 127;
test $? -ne 0 && exit 127;
fi; fi;