Make debug flag optional
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Tobias Manske 2023-04-07 12:30:22 +02:00
parent 17ce46cc12
commit 0f5ada79d8
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -19,7 +19,7 @@ mcli alias set s3 https://s3.tobiasmanske.de "${REPO_ACCESS_KEY}" "${REPO_SECRET
LOCK=""
while [[ "${LOCK}" != "${PIPELINE_ID}" ]]; do
if [[ ${DEBUG} == "true" ]]; then
if [[ ${DEBUG:-} == "true" ]]; then
echo "Debug mode, not waiting for lock"
break
fi
@ -115,7 +115,7 @@ echo QUEUE
echo
cat queue
if [[ ${DEBUG} == "true" ]]; then
if [[ ${DEBUG:-} == "true" ]]; then
echo "Debug mode, not building anything."
exit 0
fi