#!/bin/bash
# Initialize a counter
success_count=0
while ; do
# Run the command and suppress its output
# Check if the command was successful
if [; then
# If the command was successful, increment the counter
else
# If the command failed, terminate the script
fi
done