I've completely revised the approach by integrating new logic into the bash script. This updated script now evaluates specific conditions at runtime. Based on these conditions, the script dynamically calls the SQL file to execute the necessary commands.