Skip to content
Snippets Groups Projects

Delete pad after delay

Merged Roma requested to merge delete-pad-after-delay into master
+ 3
7
@@ -26,6 +26,8 @@ create_dumb_secrets() {
fi
}
PATH=$(pwd)
if [[ $(hostname) != *"test"* ]]; then
echo "ERROR : DO NOT USE OUTSIDE OF A TEST MACHINE !"
usage
@@ -48,7 +50,6 @@ if [[ -d "$1" ]]; then
echo -e "\n==== Stop and remove existing containers and volumes ===="
docker-compose down -v
cd ..
else
echo "WARNING : directory does not exist ($1) ; will try to pull"
fi
@@ -59,12 +60,7 @@ read ans
if [ $ans == "y" ]; then
git pull
if [[ ! -d "$1" ]]; then
echo "ERROR : directory does not exist ($1)"
usage
exit 1
fi
cd "$1"
cd ${PATH}/$1
git checkout -- .
else
echo "Aborting."
Loading