Skip to content
Snippets Groups Projects
Unverified Commit a82b8017 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[docker_test.sh] Manage sub-sub-folders

parent 2560e21f
No related branches found
No related tags found
1 merge request!57Delete pad after delay
......@@ -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,7 +60,7 @@ read ans
if [ $ans == "y" ]; then
git pull
cd "$1"
cd ${PATH}/$1
git checkout -- .
else
echo "Aborting."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment