diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-03 10:56:41 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-03 10:56:41 +0300 |
commit | 8a31a8395de66dbbbfc9df821d48ca8dce7da979 (patch) | |
tree | 49b92f97c0f50ccb95caa8021f1c36c77981d553 /bin | |
parent | d67b39684bd60d9b7df54bd7900407d6ee9a5cc6 (diff) | |
download | arching-kaos-tools-8a31a8395de66dbbbfc9df821d48ca8dce7da979.tar.gz arching-kaos-tools-8a31a8395de66dbbbfc9df821d48ca8dce7da979.tar.bz2 arching-kaos-tools-8a31a8395de66dbbbfc9df821d48ca8dce7da979.zip |
Nullify non valid zblock
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-enter | 1 |
1 files changed, 1 insertions, 0 deletions
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" |