Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea about trap bash #26

Open
kemperature opened this issue Sep 25, 2016 · 2 comments
Open

idea about trap bash #26

kemperature opened this issue Sep 25, 2016 · 2 comments

Comments

@kemperature
Copy link

kemperature commented Sep 25, 2016

The background: my network sucks all the time, so I wanna skip some small parts such as downloading LibreOffice and oui file (3kB/s wtf) by using Ctrl+C like "wifite".
So my solution is:
trap "echo -e '\n\n${YELLOW}[*] whatever warning message \n\n${RESET}'" SIGINT

P/s: You can use Ctrl+D to stop whole script instead

@kemperature kemperature changed the title idea about trap command in bash idea about trap bash Sep 25, 2016
@belahssen
Copy link

?

Repository owner deleted a comment from belahssen Aug 28, 2017
@g0tmi1k
Copy link
Owner

g0tmi1k commented Aug 28, 2017

Nice idea.
Will see one day about putting it in... tho don't hold your breath!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants