Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
compare as strings (#1923)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis authored Dec 12, 2017
1 parent cc25ae7 commit 55babce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ az account set -s $SUBSCRIPTION_ID_TO_CLEANUP
(( deadline=$(date +%s)-${expirationInSecs%.*} ))
# find resource groups created before our deadline
echo "Looking for resource groups created over ${EXPIRATION_IN_HOURS} hours ago..."
for resourceGroup in `az group list | jq --arg dl "${deadline}" '.[] | select(.id | contains("acse-test-infrastructure") | not) | select(.tags.now|tonumber < $dl).name' | tr -d '\"'`; do
for resourceGroup in `az group list | jq --arg dl $deadline '.[] | select(.id | contains("acse-test-infrastructure") | not) | select(.tags.now < $dl).name' | tr -d '\"'`; do
echo "Will delete resource group ${resourceGroup}..."
# delete old resource groups
az group delete -y -n $resourceGroup --no-wait >> delete.log
Expand Down

0 comments on commit 55babce

Please sign in to comment.