#!/bin/bash

############################################################################################
#
# sbwg-clean	Cleans a SBWG web site that has been soiled by repeated re-generations.
# 		If you don't know what this means or this doesn't make sense to you, just
# 		ignore it. It's the solution to a side effect of a bad joke.
# Version:	0.0.2
# Last edited:	2022-08-06
#
############################################################################################

case $# in
  0) dir="$(pwd)";;
  1) dir="$1";;
  *) printf 'What?\n'; exit 1;;
esac
if [[ -f "${dir}/settings" ]] && [[ -f "${dir}/wear" ]]
then
  : > "${dir}/wear" && printf 'Cleaned.\n'
else
  printf 'No!\n'
fi
