Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    How do you run these scripts? You mention bash but don't show a shebang or mention if you launch with bash main.sh or sh main.sh or something else. source is not portable, it's a bashishm for the standard . command. I doubt it will be relevant, but you never know. Commented Jul 27, 2021 at 10:18
  • @terdon I use shebang #!/bin/bash. Thank you for the insight I didn't know source was bash only. Commented Jul 28, 2021 at 0:43