I'm writing a bash script that among other things has a function that will stop the script if an argument is included in a string, but will continue to run if an exclusion is available in another string. Like this:

and the function is called from another function further down the script by:

Code:

some_function "$2"

Now, this is weird, but the function above used to work just fine, but all of a sudden for some reason it has stopped working and I can't figure out what I'm doing wrong so I thought i should ask the expertise here about it .

Here's another example of something that stopped working but was working before:

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum