From 1feca3a43dfa1f2e24c2150088d7f2125dfbf6ea Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 11 Feb 2022 09:41:17 +0200 Subject: Exit script if pack_z_block fails --- bin/ak-files | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/ak-files b/bin/ak-files index ea2114b..d66fc0d 100755 --- a/bin/ak-files +++ b/bin/ak-files @@ -93,12 +93,17 @@ main(){ } EOF +echo "Printing data..." +cat $TEMPASSIN/data +echo "Publishing..." + pack_z_block files/add $TEMPASSIN/data if [ $? == 0 ] then echo "cool" else echo "not?" + exit 2 fi } -- cgit v1.2.3