I'm in need of help for some bash scripting and I'm hoping someone has the answer I'm looking for.
I am trying to create a function in a bash script to check to see if a group of directories exist. That group of directories would be supplied by an array. The function should end the script if one of the directories does not exist. If all directories exist it will move on and run a series of commands.
Anyone got any ideas how to tackle this?
[link] [5 comments]