From e75e61dd0634c2d760c5b74c89ede96a99423164 Mon Sep 17 00:00:00 2001 From: Gregory Bartholomew Date: Jan 13 2022 01:28:27 +0000 Subject: Add clean.sh script --- diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..b93683d --- /dev/null +++ b/clean.sh @@ -0,0 +1,16 @@ +#!/usr/bin/bash +# vim:set ts=3: + +FILESTODELETE=$(sed 's!^/!!' .gitignore) + +echo "WARNING: This will delete" $FILESTODELETE +echo "as well as the fedoramagazine container." +echo "Everything will have to be re-downloaded" +echo "and re-installed from scratch." +echo +read -e -n 1 -p 'Proceed [y/n]?: ' CONFIRMATION + +if [[ $CONFIRMATION == y ]]; then + sudo rm -rf $FILESTODELETE + podman pod rm -f fedoramagazine +fi