g0tmi1k / os-scripts

Personal Collection of Operating Systems Scripts
https://blog.g0tmi1k.com/
555 stars 229 forks source link

idea about trap bash #26

Open kemperature opened 8 years ago

kemperature commented 8 years ago

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

belahssen commented 7 years ago

?

g0tmi1k commented 7 years ago

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