useg bash in cronjob and stop script on SIGINT
This commit is contained in:
@ -14,6 +14,9 @@ openssl_conf=$opt_dir/openssl.conf
|
||||
# script
|
||||
|
||||
|
||||
# stop script if receive SIGINT signal (ctrl-c)
|
||||
trap "exit" INT
|
||||
|
||||
# check if needed files are provided
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "No arguments provided."
|
||||
|
Reference in New Issue
Block a user