19 lines
564 B
Bash
19 lines
564 B
Bash
#!/bin/sh
|
|
|
|
# When run automated, randomize to minimize stampeding herd
|
|
if [ -t 0 ]; then
|
|
chance=10
|
|
else
|
|
chance=$(shuf -i 0-10 -n 1)
|
|
fi
|
|
|
|
if [ $chance -gt 9 ]; then
|
|
# command lines representing pending work. one will be executed
|
|
# randomly by the calling environment
|
|
echo "./tests/cleanup/remove_old_objects_alibaba.sh"
|
|
echo "./tests/cleanup/remove_old_objects_aws.sh"
|
|
echo "./tests/cleanup/remove_old_objects_azure.sh"
|
|
echo "./tests/cleanup/remove_old_objects_openstack.sh"
|
|
echo "./tests/cleanup/remove_old_objects_vmware.sh"
|
|
fi
|