From 8a31a8395de66dbbbfc9df821d48ca8dce7da979 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 3 Aug 2023 10:56:41 +0300 Subject: Nullify non valid zblock --- bin/ak-enter | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ak-enter b/bin/ak-enter index c43b891..33cc788 100755 --- a/bin/ak-enter +++ b/bin/ak-enter @@ -155,6 +155,7 @@ do if [ "$?" -ne 0 ] then logit "[ERROR]" "ZBLOCK $zblock is not JSON" + cat /dev/null > $AK_ZBLOCKDIR/$zblock > /dev/null 2>&1 exit 1 fi logit "[INFO]" "ZBLOCK $zblock is JSON" -- cgit v1.2.3