You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
kemperature
changed the title
idea about trap command in bash
idea about trap bash
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
The text was updated successfully, but these errors were encountered: