# Author: Alf Gaida # License: WTFPL-2 # 0. You just DO WHAT THE FUCK YOU WANT TO. # Variables # ========= # repository= your repository # branch= your branch, if needed # commit= your commit , if needed # target_dir= target dir, if needed, default is snapshot # # Functions # ========= # cleanup () repository="git@$domain.tld:$foo/$bar" # cleanup function definiton cleanup() { echo "" echo "┌─────────────┐" echo "│ Cleanup ... │" echo "└─────────────┘" rm -rf .git* }