From bdfdd19bffe24df0003d75f330814d0908d97e46 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 13 Jul 2022 10:43:42 +0200 Subject: [PATCH] [devops] Simplify validation for cleanup script. (#15470) --- tools/devops/automation/scripts/bash/clean-bot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/devops/automation/scripts/bash/clean-bot.sh b/tools/devops/automation/scripts/bash/clean-bot.sh index f54c7c2c9fc2..440b21900ec5 100755 --- a/tools/devops/automation/scripts/bash/clean-bot.sh +++ b/tools/devops/automation/scripts/bash/clean-bot.sh @@ -1,8 +1,8 @@ #!/bin/bash -ex # Do some simple validation -if [[ "$BUILD_REVISION" != "jenkins" ]] ; then - echo "This script should only be run on Jenkins bots." +if [[ "$BUILD_REVISION" == "" ]] ; then + echo "This script should only be run on bots." exit 1 fi