Be-Secure / BeSman

Command line utility for provisioning customized security environments. This utility comes under the Be-Secure project which is an umbrella of open source security projects, tools, sandbox environments to perform security assessments and secure open source technology stacks
https://be-secure.github.io/Be-Secure/bes-besman-details/
Apache License 2.0
21 stars 19 forks source link

[Bug]: Trap is not being cleaned up properly #210

Closed asa1997 closed 4 months ago

asa1997 commented 4 months ago

Contribution guidelines

Description

After trying the install command, pressing ^C on terminal will print the message set for user interruptions trap.

Expected behaviour

Should be cleaned up properly after the trap. Even after pressing ctrl + c after running the install command, user should not get the message set for trap.

Actual behaviour

arunsuresh@L-156320803:~$ ^C User interrupted

-bash: return: can only `return' from a function or sourced script

Steps to reproduce

  1. Install besman from develop branch.
  2. Run install command.
  3. After running install command, press ctrl + c.

Relevant screenshots

NA

Possible Solution

Should set trap - SIGINT after trap.

Additional Information

No response