A simple script to ask for user confirmation on shell commands
$ confirm 'u sure mate?' && rm somefile
Output:
u sure mate? [y/N]
$ confirm && rm somefile
Output:
Are you sure? [y/N]
git clone [email protected]:matheusbn/confirm.sh.git && cd confirm.sh && ./install.sh