Add clean.sh

This commit is contained in:
augustin64 2024-04-10 11:36:33 +02:00
parent 3978c44bbc
commit 6f13b2532d
1 changed files with 13 additions and 0 deletions

13
clean.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
docker-do () { # Check if sudo needs to be used
if id -nG "$(whoami)" | grep -qw "docker"; then
docker $@
else
sudo docker $@
fi
}
docker-do stop MsRewards
docker-do rm MsRewards
docker-do image rm msrewards