Skip to content

Instantly share code, notes, and snippets.

@addamh
Created November 12, 2015 06:20
Show Gist options
  • Save addamh/00b2fda96a1d888734eb to your computer and use it in GitHub Desktop.
Save addamh/00b2fda96a1d888734eb to your computer and use it in GitHub Desktop.
#!/bin/bash
go() {
echo "Removing personal files..."
# Delete this file
#rm -- "$0"
}
echo "Are you sure?"
select yn in "Yes" "No"; do
case $yn in
Yes ) go; break;;
No ) exit;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment