Improve cleanup

This commit is contained in:
Donny Xia
2020-07-08 11:08:19 -07:00
parent f6cac7e7e8
commit 42e19d610a

View File

@@ -1,8 +1,12 @@
#! /bin/bash
set -e
echo "You may need to run as root to clean."
sudo rm -rf example_tshirt/execfn/tshirt label_namespace/execfn/dist label_namespace/execfn/node_modules
rm -rf example_tshirt/execfn/tshirt label_namespace/execfn/dist label_namespace/execfn/node_modules
if [ "$1" == "--image" ]; then
docker image rm label_namespace_build:latest
docker image rm tshirt_example_build:latest
fi
echo "Done"