aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-03 10:56:41 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-03 10:56:41 +0300
commit8a31a8395de66dbbbfc9df821d48ca8dce7da979 (patch)
tree49b92f97c0f50ccb95caa8021f1c36c77981d553
parentd67b39684bd60d9b7df54bd7900407d6ee9a5cc6 (diff)
downloadarching-kaos-tools-8a31a8395de66dbbbfc9df821d48ca8dce7da979.tar.gz
arching-kaos-tools-8a31a8395de66dbbbfc9df821d48ca8dce7da979.tar.bz2
arching-kaos-tools-8a31a8395de66dbbbfc9df821d48ca8dce7da979.zip
Nullify non valid zblock
-rwxr-xr-xbin/ak-enter1
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"