Skip to content
Snippets Groups Projects
Commit c612c7d2 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

making stackname prefixing more robust

Former-commit-id: e0f522bf
parent 4042b18c
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,15 @@ if [ "$#" -ne 2 ]; then ...@@ -14,7 +14,15 @@ if [ "$#" -ne 2 ]; then
fi fi
STACKNAME=$2 STACKNAME=$2
STACKNAME="CICD"$STACKNAME
if [[ "$STACKNAME" == *"$CICD"* ]]; then
echo "CICD found in stackname. doing nothing"
else
STACKNAME="CICD"$STACKNAME
fi
echo "[heatcicdwrapper] Prefixing Stackname with CICD. This is a safety feature because this script can also delete stacks" echo "[heatcicdwrapper] Prefixing Stackname with CICD. This is a safety feature because this script can also delete stacks"
......
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