aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2022-02-11 09:41:17 +0200
committerkaotisk <kaotisk@arching-kaos.com>2022-02-11 09:41:17 +0200
commit1feca3a43dfa1f2e24c2150088d7f2125dfbf6ea (patch)
treef526dc569c37637bc789ff83271cdc32fa290849
parent6185e933cf51bb9cc6d43d03b0bcbbb424f084a8 (diff)
downloadarching-kaos-tools-1feca3a43dfa1f2e24c2150088d7f2125dfbf6ea.tar.gz
arching-kaos-tools-1feca3a43dfa1f2e24c2150088d7f2125dfbf6ea.tar.bz2
arching-kaos-tools-1feca3a43dfa1f2e24c2150088d7f2125dfbf6ea.zip
Exit script if pack_z_block fails
-rwxr-xr-xbin/ak-files5
1 files changed, 5 insertions, 0 deletions
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
}