Bash Script - Array Values Empty After While Loop

Job ID: 35201315

Budget: $30 – $250 USD

I have a bash script problem with Arrays.

I am doing a mysqldump of all databases which works fine and needs no adjustments.

However, I am trying to catch messages that tell me which mysqldumps succeeded and which failed.

So I have created this script which which includes a bash "while loop" you can see on this page:

https://compumatter.com/test/bashscript.php

I have also created a short video for you to better understand the problem

* https://www.youtube.com/watch?v=lgz-Jskxydo

Thank you for considering this
Related categories: Linux Shell Script