From 5c08911132823735801aa70a4e2a23bc3f1c859a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 03:40:07 +0200 Subject: Moving stuff to lib --- lib/_ak_script_exit | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 lib/_ak_script_exit (limited to 'lib/_ak_script_exit') diff --git a/lib/_ak_script_exit b/lib/_ak_script_exit new file mode 100755 index 0000000..81fe2c8 --- /dev/null +++ b/lib/_ak_script_exit @@ -0,0 +1,17 @@ +#!/bin/bash + +exit_program(){ +# cd $curdir +# if [ "$3" == "save_log" ] +# then +# tar cvfz $curdir/$(basename $tempdir)-$launch_timestamp.tgz $tempdir +# fi +# rm -rf $tempdir + if [ $1 -ne 0 ] + then + logit "EXIT" "$2 ($1)" + else + logit "EXIT" "$2" + fi + exit $1 +} -- cgit v1.2.3