Thanks! Worth noting that if your default shell is not bash, this may not work, but adding in #!/bin/bash to the top will instruct bash to execute the rest of the script.
I note this because I was scratching my head for a minute or two trying to figure out why it wasn't working - ha.
Oh nothing to be sorry about at all, it was just in case someone else had the same issue. Most folks will be using bash, and if they're not, will probably be aware of what to do! (:
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks! Worth noting that if your default shell is not bash, this may not work, but adding in
#!/bin/bash
to the top will instruct bash to execute the rest of the script.I note this because I was scratching my head for a minute or two trying to figure out why it wasn't working - ha.
Oh sorry for that! 🙏 I tried to keep the code easy and clean lol.
Oh nothing to be sorry about at all, it was just in case someone else had the same issue. Most folks will be using bash, and if they're not, will probably be aware of what to do! (: